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에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!