I was editing a function and when I ran it, Matlab crashed. I tried to figure out why, but when I restarted Matlab it would crash immediately. I went to another machine, opened up the function, realized I had put a call to the function inside the function with an inadvertent paste. Now the function works on the other machine. I go back to my own computer and try to start matlab and it always crashes. I restarted twice and no change. I can start it with -nodesktop mode but that isn't very useful for me. How can I get Matlab to start normally again? Thanks.
I encountered the same error using a recursive function. I managed to fix it doing the following things, though I 'm not sure which one did it.
1. went to C:\Users\"user"\AppData\Roaming\MathWorks\MATLAB\R20.. and deleted every xml, settings file etc after I backed it up on another folder.
2. deleted the m file with the recursive function as I saw it was stored in those files to reopen next time
3. deleted log file(in order to check the new error log)
4. run matlab.bat from C:\Program Files\MATLAB\R20..\bin
5. re copied the files back from step 1
After that it worked (I think deleting the m file did the trick)