While I was working on Matlab, my computer crashed (it does this every now and again, it's an old windows HP laptop), but when I rebooted the laptop, the current version of Matlab won't open up: I click on the icon, it briefly flashes and then nothing happens. The previous versions still works fine, so it's not urgent, but obviously I'd want to be able to keep working on the current version.
Thanks!

댓글 수: 11

Greta Magnolia
Greta Magnolia 2018년 11월 28일
the same thing has just happened to me
Andrew Cox
Andrew Cox 2018년 11월 30일
I wasn't able to fix it exactly, but it turned out to only be an issue with that version of matlab, so I've been able to use the previous version without issue
Changjun Cheng
Changjun Cheng 2020년 7월 25일
Thank you very much! I faced the same problem in R2020a and R2020b.The solution below cannot help. Then I tried R2019b, and the problem doesnt appear again.
Sayak Mukherjee
Sayak Mukherjee 2020년 7월 29일
The below solution worked for me just fine
minghan yuang
minghan yuang 2020년 8월 27일
oh my god it's working on my problem.
Enrico Maria Renzi
Enrico Maria Renzi 2020년 10월 18일
Thanks, I had this startup issue with vesion 2020a and this solution worked!!
Dominic Diston
Dominic Diston 2020년 10월 24일
Worked for me too.
Zenofer Nisha
Zenofer Nisha 2020년 12월 8일
Mee too
Peter Hu
Peter Hu 2021년 4월 26일
Any other solutions? What if I just want to use the current version? I have no other working old versions of Matlab. And my 2021a version is facing the same issue. Also, is this temporary? Will it be all right again some hours later?
YUVRAJ RAWAT
YUVRAJ RAWAT 2021년 8월 5일
I M GETTING SAME PROBLEM , PLEASE CAN ANYONE HELP ME OUT .
Erik Huuki
Erik Huuki 2021년 8월 13일
I had this problem on mac and after I ran the activation again it opened fine after. Be sure to allow access to documents

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

 채택된 답변

Bhargav Kinnal
Bhargav Kinnal 2019년 5월 3일

46 개 추천

댓글 수: 25

Dong Liu
Dong Liu 2019년 6월 25일
Nice! it worked for me!
Peter Lusis
Peter Lusis 2019년 7월 11일
Worked for me as well!
Hrithik Auchar
Hrithik Auchar 2019년 8월 18일
thanks
it works for me too tanks a lot !
Ryan Jones
Ryan Jones 2019년 11월 21일
Same Issue, Problem one solution worked for me aswell
Scott Dana
Scott Dana 2019년 12월 11일
Worked for me! Solution was for "Problem #1: Corrupt preferences"
I'm running on Windows 10.
Thanks for the help!
Jorge Pinheiro
Jorge Pinheiro 2020년 4월 10일
It worked for me as well, I had the problem #1. Use the %AppData% to find the hidden folder, and change the name of the MATLAB folder.
Thanks for the help
Thomas Ingstrup
Thomas Ingstrup 2020년 5월 2일
Solution 1 díd the trick for for me aswell
Solution 1 works for me as well! Thanks a lot!
Jaka Mocivnik
Jaka Mocivnik 2020년 5월 22일
Solution 1 works for me aswell. Thanks!
Jennifer Esch
Jennifer Esch 2020년 5월 25일
Same here, solution 1 worked like a charm!
Dunzhi Chen
Dunzhi Chen 2020년 6월 1일
Same here, solution 1 worked!
kamil altinay
kamil altinay 2020년 6월 3일
The first one worked very easily and accurately
Max Parker
Max Parker 2020년 7월 21일
Thanks, Solution 1 worked perfectly to restore functionality.
Eric
Eric 2020년 8월 5일
Solution 1 solved the problem really quickly.. :)
Chuanqiang Zhang
Chuanqiang Zhang 2020년 8월 6일
First solution solves the problem. Problem #1: Corrupt preferences
Bhavana Valeti
Bhavana Valeti 2020년 9월 22일
Worked very well.
Sayand Sathish
Sayand Sathish 2020년 10월 5일
First solution worked. Thanks!
mbedrock
mbedrock 2020년 10월 6일
Thank you so much!
Thank u very much,worked like charm.
Tooba Wahidi
Tooba Wahidi 2020년 11월 12일
The first solution worked perfectly, thank you.
Muhammed Ibrahim
Muhammed Ibrahim 2021년 2월 27일
this solution worked. Thank you
Perfect. Thank you very much.
SUVRAUJJAL DUTTA
SUVRAUJJAL DUTTA 2022년 5월 3일
Thanks.It works.
Maurício Andrade
Maurício Andrade 2022년 11월 17일
:D It worked for me, too!!!!

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

추가 답변 (5개)

dumblydoop
dumblydoop 2018년 11월 29일

11 개 추천

I had the same problem. Deleting my preferences folder did the trick, as described in the solution here:https://www.mathworks.com/matlabcentral/answers/97167-why-will-matlab-not-start-up-properly-on-my-windows-based-system

댓글 수: 3

Felix Pfreundtner
Felix Pfreundtner 2019년 5월 9일
편집: Felix Pfreundtner 2019년 5월 9일
For me it was similar
What worked was deleting in the user directory /AppData/Roaming/Mathworks/MatlabR2019a and MatlabR2019a_licence folder.
After it, restart Matlab and when asked for activation do it again.
Also a possible case for the issue might be that Windows defender blocks matlab and closes it before it can start. So put Matlab on the ignorance list for the firewall and the scanner.
In case Matlab starts again, but you get "Undefined function or variable 'rmiml.selectionLink'." in the command line:
This means your pathdef.m contains wrong entries.
You have to run following commands:
restoredefaultpath;
rehash toolboxcache;
after it you go in Matlab to the Home/Set Path window and then click "Save".
Problem might be also that you have 2 paths:
which pathdef -all
Delte one of the paths.
Thanks for your comment. I solved the same issue by renaming the preference.
Joon
mohammad akhlaghi
mohammad akhlaghi 2021년 8월 17일
thanks a lot

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

milad hasani
milad hasani 2020년 8월 21일

1 개 추천

I suggest that install a last update on your installed matlab version:
For example 2018a:
I tried this and fixed it.
Gagandeep Sharma
Gagandeep Sharma 2019년 7월 21일

0 개 추천

Following message is appearing on command window on start of the Matlab 2019b
java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1012)
at com.mathworks.services.Prefs.readMigrateFlag(Prefs.java:2153)
at com.mathworks.services.Prefs.createTwoWayMapPrefsSettings(Prefs.java:373)
at com.mathworks.services.Prefs.<clinit>(Prefs.java:214)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.mathworks.util.PostVMInit$StartupClass.init(PostVMInit.java:156)
at com.mathworks.util.PostVMInit.perform(PostVMInit.java:187)
Please advice what I have to do
Gagandeep Sharma
Gagandeep Sharma 2019년 7월 21일

0 개 추천

On trying to start simulink following message is prompting
> simulink
Cannot write to preference file "matlab.prf" in "C:\MATLAB_preferences ".
Check file permissions.
An error was encountered while saving the command history
java.io.FileNotFoundException: C:\MATLAB_preferences \History.xml (The system cannot find the path specified)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
at com.mathworks.mde.cmdhist.AltHistoryCollection$CommandSaver.run(AltHistoryCollection.java:1214)
at java.lang.Thread.run(Thread.java:748)
java322
simulink
simulink
Undefined function or variable 'java322'.
Cannot write to preference file "matlab.prf" in "C:\MATLAB_preferences ".
Check file permissions.
An error was encountered opening file C:\MATLAB_preferences \History.xml
An error was encountered while saving the command history
java.io.FileNotFoundException: C:\MATLAB_preferences \History.xml (The system cannot find the path specified)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
at com.mathworks.mde.cmdhist.AltHistoryCollection$CommandSaver.run(AltHistoryCollection.java:1214)
at java.lang.Thread.run(Thread.java:748)
César Augusto Páez Betancourt
César Augusto Páez Betancourt 2019년 10월 7일
편집: César Augusto Páez Betancourt 2019년 10월 7일

0 개 추천

Just hit the old restart button on your pc. It worked for me...

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2018b

태그

질문:

2018년 10월 27일

댓글:

2022년 11월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by