MATLAB: Is there a way to transfer MATLAB shorcuts to another computer

copyMATLAB

I want to transfer MATLAB shortcuts that I created on one machine to another. Therefore, I need to know where these files are located on my machine.

Best Answer

Take the following steps to transfer MATLAB shortcuts to another computer.
1. Rename the following XML-file:
$PREFDIR\shortcuts.xml (beginning with R2012b: shortcuts_2.xml)
(where $PREFDIR is the MATLAB directory containing preferences files, as returned by typing
prefdir
at the MATLAB Command Prompt.)
Rename the file to shortcuts.xml.old
2. Transfer the desired shortcuts.xml (resp. shortcuts_2.xml) file to this machine. Place the new file in the same directory mentioned in step 2.
3. Restart MATLAB
4. After restarting MATLAB, issue the following command at the MATLAB Command Prompt:
rehash toolboxcache