- For MATLAB before R2021b: $PREFDIR\shortcuts.xml
- For MATLAB R2021b: $PREFDIR\shortcuts_2.xml
- For MATLAB in or after R2022a: $PREFDIR\FavoriteCommands.xml
Is there a way to transfer MATLAB shorcuts to another computer?
7 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2013-9-5
编辑: MathWorks Support Team
2022-9-28
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.
采纳的回答
MathWorks Support Team
2022-7-21
编辑:MathWorks Support Team
2022-9-28
Take the following steps to transfer MATLAB shortcuts to another computer.
1. Rename the following XML-file:
where $PREFDIR is the MATLAB directory containing preferences files, as returned by typing the following at the MATLAB Command Prompt:
>> prefdir
Rename the file to "shortcuts.xml.old" ("shortcuts_2.xml.old" or "FavoriteCommands.xml.old").
2. Transfer the desired XML file to a different machine. Place the new file in the same directory mentioned in step 1.
3. Restart MATLAB.
4. After restarting MATLAB, issue the following command at the MATLAB Command Prompt:
>> rehash toolboxcache
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Manage Products 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!