How do I import an old .mat code, open the script and run it?
이전 댓글 표시
How do I import an old .mat code, open the script and run it? I am only able to import the variables but not the complete code!
답변 (2개)
Rik
2017년 2월 21일
1 개 추천
.mat files do not contain code AFAIK, so unless you saved code into something like an anonymous function, you cannot load code by loading a .mat file. You should look for .m files if you want code.
Jan Oredsson
2017년 2월 21일
0 개 추천
댓글 수: 1
Walter Roberson
2017년 2월 21일
Likely, but not definite. You might happen to have saved anonymous functions in the .mat . In the case of graphics objects, sometimes code is attached to the graphics objects -- though usually any substantial code would be in .m files instead of in graphics objects.
카테고리
도움말 센터 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!