How to recover .m file lost due to the abnormal termination

조회 수: 3 (최근 30일)
Ying Wu
Ying Wu 2022년 5월 20일
편집: Cris LaPierre 2022년 5월 20일
Hi, when I run a parallel for-loop in my code.m file, the maltab is terminatted abnormally. And when I reopen the matlab, all the code in this .m file is lost and size becomes 0 KB. Is there any way for me to recover the code? Thanks!

답변 (1개)

Cris LaPierre
Cris LaPierre 2022년 5월 20일
  댓글 수: 2
Ying Wu
Ying Wu 2022년 5월 20일
Sorry, could you pleasle explain the first tip:
  • Use the Command History or the file on which it is based, history.m, to run statements from the previous session. You might be able to recreate data as it was before the termination.
How to use command history or history.m to run statements from the previous session?
Cris LaPierre
Cris LaPierre 2022년 5월 20일
편집: Cris LaPierre 2022년 5월 20일
This will let you see a history of commands you have typed into the command window. If your code was in a script, this step may not help you.
See this video if you need help viewing your command history.

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

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by