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 个评论

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?
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.
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).
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.

请先登录,再进行评论。

 采纳的回答

Star Strider
Star Strider 2014-6-19

2 个投票

If it’s still open in the MATLAB Editor and this is the first time you’ve saved it, it may not show up in the MATLAB Editor ‘Open’ options. If you want to be sure it was saved, open the relevant directory in a different application. Your file should be there. (I have a Win 8 PC, so I can only speak from my own experiences in this. It seems to be specific to the MATLAB Editor. I would use File Explorer — or the Mac equivalent — to look for it, but a text editor or similar application might work as well.)

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 File Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by