I saved my command window with all the commands to a .mat file. When I reopen the .mat file, I was able to load the .mat but couldn't retrieve my commands in the command window.
Is there any way to retrieve these commands?

댓글 수: 3

Walter Roberson
Walter Roberson 2019년 7월 23일
What commands did you use to save the commands?
Stephen23
Stephen23 2019년 7월 23일
편집: Stephen23 2019년 7월 23일
.mat files are designed to contain variable data, not commands.
You can retrieve commands using the command history, or the diary function:
Walter Roberson
Walter Roberson 2019년 7월 23일
It is technically possible to retrieve the command history and store it in a variable that you then store in a file. I doubt that has been done, but it could have been done.

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

답변 (1개)

Alex Mcaulley
Alex Mcaulley 2019년 7월 23일
편집: Alex Mcaulley 2019년 7월 23일

0 개 추천

.mat files only store variables from the workspace.
To retrieve command history:

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

제품

태그

질문:

2019년 7월 23일

편집:

2019년 7월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by