How to avoid clear all the variable after closing a standalone executable??
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi, I have a problem that I need to solve and I do not know why. I created a executable using the deploy tool function and the executable works very well, except the fact that as my output the file "basedados.mat" is clear after I close the executable and I don't know why. I added save command with the folder path and I confirm that the file is created; however when I close and then open the .exe the file stays empty. How can I guarantee that the file is not erased?
댓글 수: 1
Adam
2017년 5월 9일
편집: Adam
2017년 5월 9일
This is not standard behaviour from an executable. There must be code within your program that is causing this, but you haven't shared any code so it is very hard to make any suggestions.
Are you sure this is happening when you close the App and not after you reopen it where it is maybe recreating the empty file ready for the next run?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!