Recently my matlab R2018a in Windows 10 couldn't open and got stuck in the splash screen. I tried everything mentioned here:
but i couldnt solve the problem. I then tried to start with -nodesktop in target line and it starts fine. I plotted something and it worked but when i tried to zoom this error was shown in the command line:
Cannot create 'matlabprefs.mat' because 'C:\Users\<username>\AppData\Roaming\MathWorks\MATLAB\R2018a' does not exist.
I ran the command folder=prefdir(1) and it returned the same path that is mentioned in the error, and then plotted something again and tried to zoom it and same error occured. I did everything mentioned in the above link for the preference folder and nothing works. I even reinstalled it but the same problem existed. My <username> folder name is in greek if that is of any importance, but i thought that wouldnt be a problem since it worked before. Any help is welcome.