Standalone compilation and use of GUI app

2 次查看(过去 30 天)
EB
EB 2020-8-12
回答: Rik 2020-8-12
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

回答(1 个)

Rik
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.

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

产品


版本

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by