MATLAB: How to transfer the MATLAB editor state between two versions of MATLAB

editorMATLABprefdirstate

I want to transfer my MATLAB editor state from one version of MATLAB to another.

Best Answer

The editor state stores attributes of the MATLAB editor, such as recently opened files. The editor state is stored in MATLAB_Editor_State.xml, which can be found in the MATLAB preference directory. To navigate to the preference directory, type the following at the MATLAB Command Prompt :
cd (prefdir)
Please copy the MATLAB_Editor_State.xml file from the preference directory of one version to the preference directory of another version of MATLAB.
Note - If the above steps does not restore the editor state, also copy the MATLABDesktop.xml file along with MATLAB_Editor_State.xml.