MATLAB executable too slow
이전 댓글 표시
I converted my matlab program into Console based application using the deploytool in matlab. The matlab .m file takes around 2 seconds to execute but after I converted it into an executable form and called the .exe it takes 45 secs to execute which is too much. I want to integrate the matlab program with php. Is there any other efficient and fast way to do this? In my project, time is really a big factor(not the developing time but the execution time of the application) so any method that takes less time? I saw in the internet that we can write php extensions to call the matlab is this method fast or the same as calling the .exe file? Is matlab coder any help for this process? If there is any alternative options please mention it.
댓글 수: 2
Abdurrehman
2018년 2월 15일
Hi, did you get solution to this issue? My standalone also takes long time to load though I am using a splash screen but it's still creating issuses.
Walter Roberson
2018년 2월 15일
In some circumstances, MATLAB Production Server is a good solution to slow startup.
답변 (5개)
Walter Roberson
2013년 4월 12일
1 개 추천
Start-up times for the executables will be slow, as it will go through the equivalent of starting up MATLAB itself.
This does not apply for MATLAB Coder, which generates C or C++ directly. However, there are quite a few things that are not supported in MATLAB Coder.
Peter
2014년 8월 13일
1 개 추천
If you are using deploytool to compile your code, under Project - Settings-Toolboxes on path uncheck any toolboxes that aren't needed by your executable. I recently had this issue and the above steps cut the executable file size in half and significantly reduced the start time of the executable.
댓글 수: 3
sandeep singh
2018년 10월 17일
I am not able to find Project - Settings-Toolboxes on path
Jan
2018년 10월 17일
"on path" might be misleading. Do you find the GUI for the Settings, where you can define which toolboxes to include?
Donghua
2025년 12월 12일
No. I open the Application Compiler,click Settings, but there is no Toolboxes. I am using 2024a

ab
2013년 4월 15일
0 개 추천
댓글 수: 2
Walter Roberson
2013년 4월 15일
Bill Chou
2013년 4월 17일
FYI, an updated list for functions and System objects supported by MATLAB Coder:
댓글 수: 1
Walter Roberson
2013년 4월 16일
The engine open will take that time.
Consider using MATLAB's "automation" mode. This calls upon MATLAB using COM. This requires that the operating system be MS Windows, and requires a real MATLAB installation; and if the web server will be accessible to the public it requires a higher license grade than normal.
Jason Ross
2013년 4월 17일
0 개 추천
You might want to take a look at MATLAB Production Server, as well.
카테고리
도움말 센터 및 File Exchange에서 MATLAB Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!