Show command prompt window for executable program created through Matlab compiler

Hi all,
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 ......
Jeena

回答 (3 件)

Walter Roberson
Walter Roberson 2014 年 1 月 26 日

0 投票

The time to open the .exe should be pretty close to the time required to open MATLAB itself.
Jeena
Jeena 2014 年 1 月 26 日
Hi,
Thanks for your reply.
Though the executable is built and I can open the application, still some features of the application are not working.
If I run my Matlab code and any error occurs, I can see the error message from Matlab command window. Thus in this way, I can sort out the issue. Similarly, is there a way I can see the error message from the compiled application ?
Can I run the same .exe application through Matlab command window ? Or is it possible to attach a windows command prompt and display the error message through that command prompt ?
Thanks
Jeena
Image Analyst
Image Analyst 2014 年 1 月 26 日

0 投票

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.

2 件のコメント

vijay sai
vijay sai 2014 年 1 月 26 日
sorry for a comment not related to the question, I had build .exe application from simulink to find the edges of an image from the file...when I start the .exe appliction.. it says starting the application...and it stays there itself..?? Am working on my academic project :-(
Image Analyst
Image Analyst 2014 年 1 月 26 日
I'm not familiar with Simulink. You paid a huge amount for the compiler, so might as well get your money's worth and call them.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

2014 年 1 月 26 日

コメント済み:

2014 年 1 月 26 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by