Main Content

Accessibility in MATLAB

MATLAB® provides several features to help make it accessible to users. To navigate MATLAB using just a keyboard, you can use keyboard shortcuts. In MATLAB Online™, you can use a screen reader and a keyboard to interact with the different tools in MATLAB. Finally, to make the desktop more visible, you can zoom in or change its colors.

For our best accessibility support, use MATLAB Online. MathWorks® is committed to improving the accessibility of its software products, focusing first on the accessibility of MATLAB Online. See our Accessibility Statement for MATLAB for the latest information on accessible workflow support.

Navigate Using the Keyboard

You can use keyboard shortcuts to navigate MATLAB with just a keyboard. Navigating with a keyboard differs depending on whether you are using MATLAB Online or an installed version of MATLAB.

In MATLAB Online, to move forward through the different areas of the MATLAB Online desktop, press Ctrl+F6. To move backward, press Ctrl+Shift+F6. On macOS systems, use the Command key instead of the Ctrl key. To display a list of navigational keyboard shortcuts, press Ctrl+/.

In an installed version of MATLAB, to move forward through the different areas of the MATLAB desktop, press Ctrl+Tab. To move backward, press Ctrl+Shift+Tab. To select a toolstrip tab, press Alt to show the access keys for the tabs and then <character> to select the tab, where <character> is the displayed access key for the desired tab. After selecting a tab, press <character> to select an item on the tab, where <character> is the displayed access key for the desired toolstrip item. Accessing the toolstrip using keyboard shortcuts in an installed version of MATLAB is not supported on macOS or Linux® systems.

For more information, see Use Keyboard Shortcuts to Navigate MATLAB.

Work with a Screen Reader

In MATLAB Online, you can use a screen reader and a keyboard to interact with the Command Window, create and edit scripts and functions in the Editor, and navigate through the different areas of the MATLAB desktop. MATLAB Online is tested with the NVDA screen reader on Windows® 10 running MATLAB Online in the Google Chrome™ browser. For more information about NVDA, see Get Help on the NV Access website.

For example, on a Windows system with the NVDA screen reader and MATLAB Online running, enter individual statements in the Command Window.

  1. With the cursor in the Command Window, create a variable named x by entering this statement in the Command Window.

    x = 1

    MATLAB adds x to the workspace and displays the results in the Command Window. You hear:

    Greater greater
    X equals one

    When you hear Greater greater, the Command Window is ready for the next statement at the command-line prompt (>>).

  2. Create another variable y by entering the following statement in the Command Window.

    y = cos(x)

    You hear the results:

    Y equals zero point five four zero three

  3. Clear all text from the Command Window by entering the following statement in the Command Window.

    clc

    You hear:

    Greater greater
    The Command Window is ready for the next statement.

For more information, see Use a Screen Reader in MATLAB Online.

Zoom

You can adjust the zoom level in MATLAB. The way you zoom differs depending on whether you are using MATLAB Online or an installed version of MATLAB.

In MATLAB Online, you can zoom in and out of the entire desktop by adjusting the zoom settings for your web browser.

In an installed version of MATLAB, you can change the zoom level in the Editor, Live Editor, and Help browser. To zoom in and out, hold the Ctrl key and move the scroll wheel. On macOS systems, use the Command key instead.

Alternatively, you can zoom in and out using the available keyboard shortcuts.

ActionKeyboard Shortcut

Zoom in

Ctrl+Plus

On macOS systems, use Command+Shift+Plus

Zoom out

Ctrl+Minus

On macOS systems, use Command+Shift+Minus

Reset Zoom

(Not supported in Help browser)

Ctrl+Alt+0

On macOS systems, use Command+Alt+0

For tools such as the Command Window, Current Folder browser, and Workspace browser, you can increase or decrease the displayed font size using font preferences. For more information, see Change Desktop Fonts.

Maximize Focus Area When Zooming

To maximize the space for your current area of focus when zooming, minimize the tools that you are currently not using. In MATLAB Online, to minimize a tool, collapse the panel where the tool resides. For example, to minimize the Current Folder browser and Workspace browser, click the collapse button at the bottom left corner of the panel. To restore them, click the expand button .

In an installed version of MATLAB, to minimize tools such as the Current Folder browser, Command Window, Editor, and Live Editor, on the title bar of the tool, click the action menu button and select Minimize. For example, to minimize the Current Folder browser, at top right of the Current Folder browser, click the action menu button and select Minimize.

For more information about minimizing tools, see Change Desktop Layout.

Change Colors in MATLAB

You can change the text and background colors for certain desktop tools in MATLAB, including the Editor, Command Window, Current Folder browser, Workspace browser, and Import Wizard. In MATLAB Online, changing the colors of the Current Folder browser and the Workspace browser is not supported.

To change the text and background colors:

  1. In the Command Window, type preferences Colors to open the Preferences window with the MATLAB Colors Preferences page selected.

  2. In the Desktop tool colors section, clear the Use system colors check box.

    In MATLAB Online, the Use system colors check box is not available and this step can be skipped.

  3. Use the Text and Background fields to change the colors. For example, select white for the text color and black for the background color.

    The Syntax Highlighting sample and Command Window sample areas show a preview of the selected colors.

    Sample panels showing a dark grey background and white text

To restore the default text and background colors, click the Restore Default Colors button at the bottom of the Preferences window.

For more information, see Change Desktop Colors.

Changing the colors of the toolstrip and Help browser is not supported. To change the color of text in the Live Editor, use settings. For more information, see matlab.fonts Settings.

See Also

Related Topics