Standalone compilation and use of GUI app
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Rik
am 12 Aug. 2020
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 Kommentare
Siehe auch
Kategorien
Mehr zu Whos finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!