Matlab not saving files
显示 更早的评论
I'm using MATLAB R2013a on OS X 10.9.3
Here is screenshot of what is happenening.

After I click save, I go to open and I don't see my file anywhere.

Does anyone have any suggestions?
Thanks.
4 个评论
Geoff Hayes
2014-6-19
Interesting how in the second image, the text along the top of the Editor window still reads Editor - untitled 2* which is the default name of the file and the * meaning it has been modified and needs to be saved. So the initial save never took.
Do you have write permissions to this folder? (I suspect that you would see an error message window if that were the case though…)
Does the same thing happen for files that already exist i.e. can you modify the file and save the changes?
Star Strider
2014-6-19
It will show ‘Untitled 2’ until it gets saved the first time, then the MATLAB Editor will show its tab to be (in this situation) ‘myfirstfunction.m’.
So if the title in the tab for it changes, that means it’s been saved successfully.
Geoff Hayes
2014-6-19
Right - so Anthony's steps are add text to new file 'Untitled2', select 'Save--> Save As...' from the menu, press the Save button and...the title of the file remains as 'Untitled2' indicating that the save failed (for some reason).
Star Strider
2014-6-19
The only other files visible are both ‘toolbox’ functions. Probably not permitted to save to those directories, the reason the save failed.
Switching to Anthony’s user directory would probably solve the problem.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!