Problem with creating an .executable program
5 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have a problem. I am creating an .exe file from a code in matlab.
clc
clear
mcc -m file.m
and as a result it is created the file.exe.
But the problem is that my matlab code include one subroutine (I mean in one line has the command:
run calculations.m
), and when I am running the .exe file it shows me an error in this line.
Could you please help me in order to fix it?
0 件のコメント
回答 (1 件)
Steven Lord
2020 年 5 月 6 日
I believe you need to explicitly tell MATLAB Compiler to include calculations.m in the executable. This is the problem described in the "Fixing Callback Problems: Missing Functions" section on this documentation page. The easiest way to solve this is probably to remove the run call. Just run the script using its name.
calculations
This way the dependency analysis should be able to detect the call and include it in the executable automatically.
4 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!