How to avoid clear all the variable after closing a standalone executable??

9 次查看(过去 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
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 CenterFile Exchange 中查找有关 Entering Commands 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by