MATLAB Answers

I suddenly cannot save m-files anymore. What can I do about that?

200 views (last 30 days)
Sascha
Sascha on 10 Oct 2012
Commented: Image Analyst on 20 Mar 2020
When I create a new m-file and want to "save it as..." it does not change its name from "untitled" in the Editor and the little star telling i is unsaved does not disapear. Then again when I open and change an existing m-file I can save it as usual. I am using version 8.0.0.783 (R2012b).
Tanks for your help!!!

  3 Comments

Micol Pennacchio
Micol Pennacchio on 19 Oct 2012
I have exactely the same problem after upgrading from Matlab 2008b to 2012b (actually I uninstalled the first and installed the second from scratch) on Windows 7. Anybody found a solution yet?
Nikola
Nikola on 26 Feb 2013
I have the exact same problem here. I'm using windows 8. Is the still no solution??
edit: I just restarted my pc like the support suggested and it actually worked :)
Image Analyst
Image Analyst on 26 Feb 2013
Please run PSR.exe (Start>Search Programs and Files->psr, or whatever the equivalent way to find programs in in Windows 8) and record your session and upload to your favorite file sharing web site. Then tell us where you uploaded it. http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers That way we'll see exactly what you see in a series of screenshots.

Sign in to comment.

Answers (7)

Azzi Abdelmalek
Azzi Abdelmalek on 10 Oct 2012
copy your file content to text file(notepad for example), restart matlab, and save your file

  3 Comments

Caleb Okafor
Caleb Okafor on 15 Oct 2018
All you need to do is to create a new folder and save the new file into that folder because there is a limit to the number of files that a folder can contain. I tried it and it worked for me!
Walter Roberson
Walter Roberson on 15 Oct 2018
NTFS permits 2^31-1 files per subdirectory. If you are exceeding that, you should be reorganizing.
FAT32 permits 65534 files per subdirectory. That might apply for something like a USB stick.
ParkourPolkaDots
ParkourPolkaDots on 28 Mar 2019
I'm saving the files on my laptop computer and I don't even have that many files in the folder, less than 20 files. 10 images and 5 code snippets max.

Sign in to comment.


Image Analyst
Image Analyst on 10 Oct 2012
What operating system are you using and where are you trying to save it? Windows 7 does not let you save in certain folders even though the save file dialog will let you browse there.
Does the dialog box just exit as if everything went perfectly normally, or does it give you any kind of error message? If there is no error message, it should have worked and changed the title bar name in the editor. If it doesn't behave that way, I'd call the Mathworks.

  4 Comments

Show 1 older comment
Image Analyst
Image Analyst on 10 Oct 2012
That's now how I read it. I read that with an existing file that he saved before he could still save it: " I open and change an existing m-file I can save it as usual."
While for a brand new file, never before saved: " I create a new m-file and want to "save it as..." it does not change its name from "untitled" in the Editor and the little star telling i is unsaved does not disapear"
Jan
Jan on 11 Oct 2012
@Azzi: After dozens of years of experiences with computer users, I've learned that "suddenly" means: directly after a modification I do not tell here, because I either do not assume that it is important or I'm even not aware of it.

Sign in to comment.


Sascha
Sascha on 11 Oct 2012
Hello and thanks for your answers so far. Image Analyst got it right. I am using Windows 7 Starter (on a netbook). There is no error dialogue, everything seems fine except the point, taht the m-file is not saved in the end.

  1 Comment

Image Analyst
Image Analyst on 11 Oct 2012
Got the problem description right, but still no solution. It seems totally bizarre and unexplainable so you need to call tech support.

Sign in to comment.


Sean de Wolski
Sean de Wolski on 26 Feb 2013
Edited: Sean de Wolski on 26 Feb 2013
We have a few reports of this happening (including from me!) so please contact us so we can learn more about it.
One user resolved it by reintalling Windows.

  0 Comments

Sign in to comment.


Elisa
Elisa on 4 Dec 2013
I have the same problem.
I believe that the problem has been in the updating of jdk from 1.6 to 1.7 and the declaration of the environment variable MATLAB_JAVA...
check it anyway...

  0 Comments

Sign in to comment.


Bao Le
Bao Le on 5 Dec 2019
first check your code are there any variables that are same with the function of matlab, if not copy it to a new file and save it

  0 Comments

Sign in to comment.


Mireia Torralba
Mireia Torralba on 16 Mar 2020
Hi,
Today I had exactly the same problem.
Matlab release: 2019b
OS Windows.
Now it seems to work fine but just to keep issue stats updated.
Best.

  3 Comments

Mireia Torralba
Mireia Torralba on 19 Mar 2020
Hi,
Is there any Matlab technichal support memberc checking this issue? I had again the same problem today, which was solved again when I restarted Maltab. Therefore, is not a coding or OS problem but seems more to be a Matlab bug.
Walter Roberson
Walter Roberson on 19 Mar 2020
Is there any Matlab technichal support memberc checking this issue?
No. This is not an official support channel. You should open a technical support case.
Image Analyst
Image Analyst on 20 Mar 2020
Did you see my comment at the top about running PSR?
Attach the zip file it creates here with the paper clip icon so we can look at it.

Sign in to comment.