How can I change where offline documentation is installed?

13 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 31 Mar 2023
The command "docroot" can change where you have it installed. Keep in mind that is variable is only present in your current MATLAB session and will disappear after restarting MATLAB. You can make MATLAB automatically run this command in either a startup.m file, or by using the -r argument with MATLAB. In a startup.m file, you would write "docroot('filepath')". An example would be "docroot('C:\ProgramData\MATLAB\SupportPackages\R2023a\help')". If you were using the -r argument in a Windows shortcut or Windows Terminal, you'd see something like this: "C:\MATLAB\R2023a\bin\matlab.exe -r docroot('C:\ProgramData\MATLAB\SupportPackages\R2023a\help');"

More Answers (0)

Categories

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

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!