Set default documentation location programmatically in R2021A

조회 수: 4(최근 30일)
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
but I could not find it
Thank you in advance


Anmol Dhiman
Anmol Dhiman 2021년 4월 7일
Hi Marco,
This is controlled by the setting. The valid values are "WEB" or "INSTALLED":
>> s = settings;
>> = 'WEB';
Please note that this not a documented functionality and might not work in future releases.
Hope it Helps
  댓글 수: 8
Aldo Corbellini
Aldo Corbellini 2021년 12월 17일
I confirm that for some unknow reason, the following property:'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.

댓글을 달려면 로그인하십시오.


Find more on Introduction to Installation and Licensing in Help Center and File Exchange





Community Treasure Hunt

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

Start Hunting!

Translated by