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

조회 수: 8 (최근 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 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