Re: MAT files : MATLAB COMPILER



Hi Billy, I have created a README FILE for distributing matlab
compiled codes...I have pasted it below....not sure if this will help
you or not...but i was getting an error saying that same *.dll file
is missing. SO i followed certain steps and was successful in running
the *.exe.

here you go......

1. Install MCR Utility on your machine to run the executable.

2. Say MCR is installed into "C:\Program Files\MATLAB\MATLAB
Component Runtime\v74".

3. Create a NewFolder say - TEST in the directory where MCR was
installed in Step-1. Thus the location of directory "TEST" would
be "C:\Program Files\MATLAB\MATLAB Component Runtime\v74\TEST".

4. Copy all the files *.exe/*.c/*.ctf files to "TEST" directory.

5. Double Click on "*.exe" file. Once its done without giving any
errors, it will extract the required files and create a new
folder within the directory "TEST".

6. Copy all the required data(*.mat or *.dat) and image files to
the "work" folder within the NEWFOLDER created inside the
directory "TEST".

Now, there are 2 methods to run the code.

-----------------------
METHOD 1 - SHORTCUT
-----------------------

1. Double click the TEST.exe file to execute it.

-------------------------------
METHOD 2 - Using Command Prompt
-------------------------------

1. Click on WINDOWS START BUTTON(bottom left corner).
2. Click on RUN and type "cmd" and press ENTER.
3. On the command prompt make sure you just have the C:\> prompt.

Incase you have the prompt like this

c:\Some Directory\Some Other Directory>

Then keep typing "cd.." and ENTER till the prompt comes back to

c:\>

4. Now type in "cd Program Files\MATLAB\MATLAB Component
Runtime\v74\TEST". Your path may be different depending upon where
the MCR utility was installed and where you created the FOLDER for
keeping the executable files.

5. Now type in the name of your executable on the cmd prompt in my
case it looked like this

c:\Program Files\MATLAB\MATLAB Component Runtime\v74\TEST>TEST.exe

and press ENTER

6. The file should execute as expected.

cheers
vivek
.