Main Content

Install Documentation for Offline Use

Since R2023a

When using MATLAB®, you access product documentation on the web, by default. If you need offline access to the documentation, you can download and install it when your computer is connected to the internet, and then access the locally installed documentation when your computer is temporarily offline.

If the computer you use is permanently offline, see Install Documentation on Permanently Offline Computers.

Download and Install Documentation (Requires Internet Connection)

To download and install the documentation, follow these steps:

  1. Open MATLAB.

  2. On the Home tab, in the Environment section, click Preferences.

  3. In the left pane of the Preferences dialog box, click MATLAB, and then click Help.

  4. Under Documentation Location, select Installed locally.

  5. Click Install Documentation.

    MATLAB installs the documentation in the support package root folder. To find the support package root, use the function matlabshared.supportpkg.getSupportPackageRoot (MATLAB).

  6. Restart MATLAB.

  7. Verify that MATLAB opens the locally installed documentation. At the MATLAB command prompt, enter: doc

    On the documentation home page that opens, place your cursor on one of the links and check the format of the URL that appears in the bottom-left corner. If the URL is a local file path (for example, file:///C:/ProgramData/MATLAB/...), then MATLAB is opening the local documentation.

To update installed documentation after adding or removing products, or to install the most recent documentation, repeat this procedure.

Revert to Web Documentation

To revert to opening documentation from the web, follow these steps:

  1. Open MATLAB.

  2. On the Home tab, in the Environment section, click Preferences.

  3. In the left pane of the Preferences dialog box, click MATLAB, and then click Help.

  4. Under Documentation Location, select Web, on mathworks.com.

  5. Restart MATLAB.

  6. Verify that MATLAB opens the web documentation. At the MATLAB command prompt, enter: doc

    On the documentation home page that opens, place your cursor on one of the links and check the format of the URL that appears in the bottom-left corner. If the URL is a web path (for example, https://www.mathworks.com/help/...), then MATLAB is opening the web documentation.

Related Topics