How to avoid clear all the variable after closing a standalone executable??
9 views (last 30 days)
Show older comments
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 Comment
Adam
on 9 May 2017
Edited: Adam
on 9 May 2017
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?
Answers (0)
See Also
Categories
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!