How to backup my Matlab Favorites

30 ビュー (過去 30 日間)
Shahed
Shahed 2012 年 8 月 21 日
コメント済み: MIKE MA 2023 年 1 月 13 日
Hi,
I have installed a new version of Matlab and would like to transfer my Matlab Favorites from my old version into the new one. Could you please let me know how I can backup my Matlab favorites?
Cheers,

採用された回答

Shahed
Shahed 2013 年 5 月 25 日
編集済み: Shahed 2013 年 5 月 25 日
The Matlab Favorites can be backed up by copying the shortcuts.xml or shortcuts_2.xml from the right folder. The path to the folder, which containing the shortcuts.xml or shortcuts_2.xml, can be obtained by running “prefdir” command from Matlab command line.
Afterward, You can restore your Matlab Favorites on your newly installed Matlab. To do so, you need to copy the backed-up shortcuts.xml or shortcuts_2.xml into your Matlab newly installed folder. In order for Matlab Favorites to get updated, you need to restart your Malab.
The broken link error is unavoidable if you want to restore your Matlab Favorites into a newer version since the paths to the Doc files are different in different versions of Matlab.
you can work around the issue if you want to restore your Favorites to Matlab with compatible (Help) filing structures such as Matlab 2010a, 2010b, 2011a, 2011b, 2012a and 2012b. to work around the issue you need to update the paths in the shortcuts.xml or shortcuts_2.xml accordingly. For example, if you move your Favorites from Matalb 2010a to 2011b, you need to replace all "R2010a" to "R2011b" on the shortcuts.xml or shortcuts_2.xml.
Please note the filing structure for Matlab2013a (or newer versions) are not compatible with the older one; in the other word, the above procedures does not seem very straight forward for restoring your Matlab Favorites from 2012b and older into 2013 (or newer versions).
It would be great if Mathworks considers IMPORT button on Shortcuts Organizer for Matlab 2013a (and newer verstions) similar to browsers.

その他の回答 (1 件)

Todd
Todd 2019 年 8 月 15 日
In R2018b it looks like favorites are stored in FavoriteCommands.xml.
  2 件のコメント
MIKE MA
MIKE MA 2023 年 1 月 13 日
yes,it should be ok to find
MIKE MA
MIKE MA 2023 年 1 月 13 日
just copy the file to prefdir path, then it can be used.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by