How Matlab builds the default preference file?

1 回表示 (過去 30 日間)
Ajpaezm
Ajpaezm 2020 年 2 月 25 日
コメント済み: Ajpaezm 2020 年 2 月 26 日
Hello,
What happens after I delete a preferences file from Matlab? Will the Matlab preferences be restored the next time I open the program? If so, where does Matlab build this "built-in" preferences file from?
Would it be recommendable to check for preferences within the startup.m file? What should be the best practice for this?

採用された回答

Steven Lord
Steven Lord 2020 年 2 月 25 日
What happens after I delete a preferences file from Matlab? Will the Matlab preferences be restored the next time I open the program?
If so, where does Matlab build this "built-in" preferences file from?
Not somewhere user-accessible, if you're hoping to be able to modify how that preferences file is recreated.
Would it be recommendable to check for preferences within the startup.m file?
Why? What preferences are you interested in, and what do you want to decide or do based on the preference value?
What should be the best practice for this?
I would caution against trying to manipulate the preferences file. The format of the entries in the file is not documented. Many of those preferences are likely available via the Preferences icon in the Environment section of the Home tab of the Toolstrip. If there are preferences you want to be able to set that are not accessible from the Preferences UI, you can submit an enhancement request to Technical Support using the telephone icon in the upper-right corner of this page asking for them to be added to the UI.
  1 件のコメント
Ajpaezm
Ajpaezm 2020 年 2 月 26 日
Thank you Steven!
Why? What preferences are you interested in, and what do you want to decide or do based on the preference value?
Nothing special, I just wanted to check for corrupted preference .mat files at the beginning of every Matlab session. And if that test was positive for corrupted files, get rid of them and reboot the software.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

タグ

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by