why does my m file not save correctly
13 次查看(过去 30 天)
显示 更早的评论
Ive tried to save multiple codes saving with the same conventional type. But for whatever reason when i try opening the .m file saved, it seems corrupt. All my .m files are behaving this way. Am i doing something wrong? or do i need to reload the system? I am not sure how to fix this issue.
I am using save file(title.m)
2 个评论
回答(1 个)
per isakson
2019-10-28
编辑:per isakson
2019-10-28
The command save is used to store variables of the current workspace, i.e. save data.
There is no simple command to save m-code. Instead it's typically done interactively.
- Create or modify a code
- Click the Save icon or the little down-arrow below the Save icon
- Chose folder and filename
- Click Save in the bottom right corner of the save file dialog
Open the m-file interactively. The Open File icon is next to the Save icon
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!