Main Content

Install Documentation for Temporary 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, if the URL points to a local IP address and port number (for example, http://127.0.0.1:12345), then MATLAB is accessing the locally installed 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, if the URL points to a web address (for example, https://www.mathworks.com/help/...), then MATLAB is accessing the web documentation.

Related Topics