From: Peleg Bahar on
HI,
I have a program built from several files.
I have a few m files (functions and m for gui), and a gui file.
I want to convert my program to an EXE file so it can run on its on.

I know that the mcc command convert a single file.
How can I convert all my files so the program could run with no problems?

Thank you,
Peleg
From: Matt J on
"Peleg Bahar" <bahar_p(a)yahoo.com> wrote in message <hss0vg$e6a$1(a)fred.mathworks.com>...
> HI,
> I have a program built from several files.
> I have a few m files (functions and m for gui), and a gui file.
> I want to convert my program to an EXE file so it can run on its on.
>
> I know that the mcc command convert a single file.
> How can I convert all my files so the program could run with no problems?
================

I'm pretty sure mcc will trace the dependent mfiles of any main file you decide to compile (provided they are on the MATLAB path).

If not, use deploytool(). It is a GUI interface to mcc and provides window panes where you can load a library of dependent Mfiles.
From: ImageAnalyst on
Well I'll just confirm it then. Yes it will automatically find (or at
least try to) any dependent m-files -- you don't need to list them
explicitly. And like Matt said, you'll have to ship any other files
other than m-files that it needs, such as documentation, data files or
images read in at run-time, Excel workbooks, etc. You can use
MATLAB's deploytool, or an installer program like Wise or
InstallShield.
From: Peleg Bahar on
Thank you very much for your answer.
It works.

The only problem now is -
If I take the EXE file to a computer that dose'nt have matlab installed on it, I get an error massege regarding a missing mclmcrrt711.dll file.
I have read about the file and learned that it's a part of matlab.

Can I run my EXE file on computers that dose'nt have matlab installed?
After all, that's the reason I created the EXE file....

Thanks!
Peleg
From: Zia on
Hi,

Yes you can use the mtalab generated exe on computers that don't have Matlab installed. But for that you first have to install the MCR Installer on your target computer. The MCR Installer usually reside in:

(Matlabroot)\toolbox\compiler\deploy\win32

Just copy that and install that first on your target computer. And here you go :-)
 |  Next  |  Last
Pages: 1 2
Prev: Rearrange my Matrix
Next: Rearrange my Matrix