MATLAB: .m file turning into binary file after performing save command in MATLAB online workbench

m-filesave

Hi guys,
When I'm editing any matlab script (.m file) and then performing save to that file, it is saving in this format:
ErrorSavingMFile.png
commands:
>> edit anyFile.m
After editing any line:
>> save anyFile.m
any workarounds? (I'm new to this).

Best Answer

Don't do the save because that saves the m file as a binary .mat format file.
To save the file, just
  1. click on the save icon on the tool ribbon, or
  2. type control-s, or
  3. just click on another tab (another m-file you're editing) and it will probably save it automatically.