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

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

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 2013년 2월 26일
편집: Nikola 2013년 2월 26일
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 :)
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.

댓글을 달려면 로그인하십시오.

답변 (9개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 10월 10일

1 개 추천

copy your file content to text file(notepad for example), restart matlab, and save your file

댓글 수: 3

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!
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.
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.

댓글을 달려면 로그인하십시오.

Image Analyst
Image Analyst 2012년 10월 10일

0 개 추천

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

He said suddenly he can't save his file, means that he could save it before
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"
@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.

댓글을 달려면 로그인하십시오.

Sascha
Sascha 2012년 10월 11일

0 개 추천

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

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

댓글을 달려면 로그인하십시오.

Sean de Wolski
Sean de Wolski 2013년 2월 26일
편집: Sean de Wolski 2013년 2월 26일

0 개 추천

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.

댓글 수: 2

Jing Ci Neo
Jing Ci Neo 2021년 4월 18일
편집: Jing Ci Neo 2021년 4월 18일
This just happened to me! There was no error message and I could go through the save process as per normal, but the script is not saved (remains as untitled).
MATLAB R2021b, MacOS Mojave, v10.14.6
(update) Actually, I cannot run any scripts at all
@Jing Ci Neo, call tech support. Not being able to run any scripts at all is not normal. Tech support can start a screen sharing session with you and fix it. We can't do that.

댓글을 달려면 로그인하십시오.

Elisa
Elisa 2013년 12월 4일

0 개 추천

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...
Bao Le
Bao Le 2019년 12월 5일

0 개 추천

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
Mireia Torralba
Mireia Torralba 2020년 3월 16일

0 개 추천

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.

댓글 수: 4

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.
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.
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.
I
I changed the compatibility of the executable in the folder C: \ Program Files \ MATLAB \ R2019b \ bin \ matlab.exe to windows 8 and saved the .m files again

댓글을 달려면 로그인하십시오.

Drashti Sahu
Drashti Sahu 2021년 8월 10일

0 개 추천

My Problem is :
Firstly i installed the MATLAB 2021 version in which when i save the file a pop-up box came which was telling file does not found.
I was thinking may be it is the problem of version so i uninstalled that and i download version 2019a in my pc but again i face the same issue .
can someone please help me .

댓글 수: 3

Did you try PSR like I suggested in my comment at the top? Or did you call tech support (if not, why not)?
I have the same problem with my 2019b version. I just have to close and restart the MATLAB, then it work ok. it happens time to time, don't know how to fix. it is northing to do with folder save permission, othewise how it work after matlab restart ?
And did you call tech support? If not, why not?

댓글을 달려면 로그인하십시오.

Pradnya
Pradnya 2024년 5월 24일

0 개 추천

Hii, I too face the same problem:
" save('allFileInfo')
Error using save
Unable to write file allFileInfo: permission denied."
Appreciate your feedback

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2012년 10월 10일

댓글:

2024년 5월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by