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

9 ビュー (過去 30 日間)
Marisa
Marisa 2017 年 5 月 9 日
編集済み: Adam 2017 年 5 月 9 日
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 Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by