MATLAB: MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on:

error

I have just saved my m file, it is just included some vectors which i am going to plot them. But, while I am trying to open that file it has been converted to the weird shape starting by MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Thu Sep 05 20:46:21 2013 what can i do? many thanks

Best Answer

It sounds like you overwrote your code file by calling save with its name, storing a MAT-file in its place. This won't help hooman but Law Chung, if you were editing the file in the MATLAB Editor, hopefully you had the Backup Files Preference set to save a back-up copy periodically from which you can retrieve your code. [I believe backing up is enabled by default.]