Saving notes to the startup function

조회 수: 1 (최근 30일)
Ofir Shein Lumbroso
Ofir Shein Lumbroso 2017년 11월 7일
댓글: Stephen23 2017년 11월 7일
I have an editable text area in my app and I would like to save the changes in it automatically to the startup function (this way next time that I will open the app I will see the notes from the last session). Can it be done?
  댓글 수: 1
Stephen23
Stephen23 2017년 11월 7일
That would not follow good practice: you should keep data and code separate, especially when that data is being changed. Just save the data in a .mat file and load that: simple.

댓글을 달려면 로그인하십시오.

채택된 답변

ES
ES 2017년 11월 7일
Any specific reason why you want to do this in the start fcn? IMHO, the best way is to store the data in a separate file (example text, mat etc).
If you are, for some reason you need it, you will have to open the .m file using fopen and fwrite commands.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by