Windows 10 Matlab suddenly won't open
Mostrar comentarios más antiguos
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 comentarios
Greta Magnolia
el 28 de Nov. de 2018
the same thing has just happened to me
Andrew Cox
el 30 de Nov. de 2018
Changjun Cheng
el 25 de Jul. de 2020
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
el 29 de Jul. de 2020
The below solution worked for me just fine
minghan yuang
el 27 de Ag. de 2020
oh my god it's working on my problem.
Enrico Maria Renzi
el 18 de Oct. de 2020
Thanks, I had this startup issue with vesion 2020a and this solution worked!!
Dominic Diston
el 24 de Oct. de 2020
Worked for me too.
Zenofer Nisha
el 8 de Dic. de 2020
Mee too
Peter Hu
el 26 de Abr. de 2021
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
el 5 de Ag. de 2021
I M GETTING SAME PROBLEM , PLEASE CAN ANYONE HELP ME OUT .
Erik Huuki
el 13 de Ag. de 2021
I had this problem on mac and after I ran the activation again it opened fine after. Be sure to allow access to documents
Respuesta aceptada
Más respuestas (5)
dumblydoop
el 29 de Nov. de 2018
11 votos
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 comentarios
Felix Pfreundtner
el 9 de Mayo de 2019
Editada: Felix Pfreundtner
el 9 de Mayo de 2019
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.
Michael Landrigan
el 2 de Jul. de 2021
Thanks for your comment. I solved the same issue by renaming the preference.
Joon
mohammad akhlaghi
el 17 de Ag. de 2021
thanks a lot
milad hasani
el 21 de Ag. de 2020
1 voto
I suggest that install a last update on your installed matlab version:
For example 2018a:
I tried this and fixed it.
1 comentario
Zini Poon
el 7 de Mayo de 2021
It works! Thanks!
Gagandeep Sharma
el 21 de Jul. de 2019
0 votos
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
el 21 de Jul. de 2019
0 votos
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
el 7 de Oct. de 2019
Editada: César Augusto Páez Betancourt
el 7 de Oct. de 2019
0 votos
Just hit the old restart button on your pc. It worked for me...
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!