Show command prompt window for executable program created through Matlab compiler
9 Ansichten (letzte 30 Tage)
I have created a Matlab GUI for a simulation purpose and I want to compile the GUI to an application package. I used Matlab compiler and made an executable version. I am encountered with few problems in making this compiled version.
1. It takes atleast 15 minutes to compile the application - My main code is atleast 5000 lines long and the subfunctions will count to another 2000 lines. Is this an acceptable time for such a code ?
2. It takes around 3 minute to open the .exe application made through Matlab compiler. Any suggestions to improve the executable time ?
Thanks in advance ......
Walter Roberson am 26 Jan. 2014
The time to open the .exe should be pretty close to the time required to open MATLAB itself.
Image Analyst am 26 Jan. 2014
You can run your exe through your command window. Just use a bang at the command line.
>> cd c:\whatever >> !yourapp.exe
Now to answer your questions. 1. I have apps that are 5-6000 lines long with some code in other m-files. It takes about 2.5 up to a max of about 4 minutes to compile. 2. It does take a long time. Longer the very first time because it has to unpack the CTF, and less time the second and subsequent times. It might take 45-60 seconds the first time, and about 30-45 after that. There is no know way to speed it up, short of getting a new computer or perhaps using a ramdisk. You can use imdisk ( http://www.downloadcrew.com/article/27718-imdisk) to set one up. http://www.pcworld.com/article/260918/how_to_supercharge_your_pc_with_a_ram_disk.html Or you can install on a solid state drive.