Standalone compilation and use of GUI app
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I am using a standalone app developed with GUI. After the app is compiled, I have done tests with the application found in for redistribution only folder. The app is supposed to read and take the data from an external .txt file that is usually placed in the same folder as the app itself (for redistribution only folder).
In the process of compiling the standalone app within the matlab compiler, I have added this .txt file file to step: files necessary for your application to run.
Now, if I want to use a different .txt file, with different input numbers, it seems like after running the app, the final results I get are not obtained by using the most recent .txt file. Instead the results are for that .txt file that was included within the compilation process.
Is this normal to happen? Any thoughts on this would be extremely helpful.
Thank you
EB
0 个评论
回答(1 个)
Rik
2020-8-12
Yes. You asked Matlab to include the txt file, so it did. If you don't want to include it in the packaged app, you shouldn't add it as a required file, even if on another level the file is required.
To explain it in a different way: your program may require manual input to be valid, but that is not a requirement for your program to start without fatal errors. Incorrect input should be dealt with in the program itself, not by the compiler.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!