Set default documentation location programmatically in R2021A

10 ビュー (過去 30 日間)
Marco Riani
Marco Riani 2021 年 4 月 1 日
コメント済み: Aldo Corbellini 2021 年 12 月 17 日
Starting in R2021a, when you run MATLAB with an internet connection, the Help browser displays the web documentation by default. When you run MATLAB on a system without an internet connection, or if your internet connection becomes unavailable, the Help browser displays the installed documentation instead.
To change the default documentation location, on the Home tab, in the Environment section, click Preferences. Select MATLAB > Help and change the Documentation Location.
I would like to know what is the code to change the documentation location programmatically.
I thought it was something like
com.mathworks.mlservices.MLHelpServices.setDocCenterDomain
but I could not find it
Thank you in advance
Marco

回答 (1 件)

Anmol Dhiman
Anmol Dhiman 2021 年 4 月 7 日
Hi Marco,
This is controlled by the matlab.help.DocCenterLocation setting. The valid values are "WEB" or "INSTALLED":
>> s = settings;
>> s.matlab.help.DocCenterLocation.PersonalValue = 'WEB';
Please note that this not a documented functionality and might not work in future releases.
Hope it Helps
  8 件のコメント
Gian23
Gian23 2021 年 4 月 21 日
This is just to confirm that the instruction:
s.matlab.help.DocCenterLocation21a.PersonalValue='INSTALLED'
or
s.matlab.help.DocCenterLocation21a.TemporaryValue ='INSTALLED'
does not take effect immediately. I'm using Matlab 2021a on a Mac OSX.
Thanks in advance
Aldo Corbellini
Aldo Corbellini 2021 年 12 月 17 日
I confirm that for some unknow reason, the following property:
s.matlab.help.DocCenterLocation21a.PersonalValue='INSTALLED'
or
s.matlab.help.DocCenterLocation21a.TemporaryValue ='INSTALLED'
works only if you restart MATLAB. It would be nice if this was not necessary.
It also would be nice if this instant effect could become a feature request in a future MATLAB release.

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

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by