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!