Hauptinhalt

Accessibility in MATLAB

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

MathWorks® is committed to improving the accessibility of its software products. See our Accessibility Statement for MATLAB for the latest information on accessibility support.

Before R2025a: For our best accessibility support, use MATLAB Online™.

Navigate Using Keyboard

You can navigate MATLAB with just a keyboard by using keyboard shortcuts.

To move forward through the different areas of the MATLAB desktop, press Ctrl+F6. To move backward, press Ctrl+Shift+F6. On macOS systems, use the Command key instead of the Ctrl key. To move into a tool, for example, into the current toolstrip tab, press Tab. To display a list of navigational keyboard shortcuts, press Ctrl+/.

To create a printable list of the current set of keyboard shortcuts in MATLAB, on the Home tab, in the Environment section, click Settings. Then, select MATLAB > Keyboard > Shortcuts, click the settings button, and select Copy to clipboard. Paste the copied list of shortcuts into a spreadsheet application, such as Microsoft® Excel®, or a text file. For the best formatting, use a spreadsheet application.

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

Work with Screen Reader

You can use a screen reader and a keyboard to interact with the Command Window, create and edit scripts, live scripts, and functions in the Editor and Live Editor, and navigate through the different areas of the MATLAB desktop.

For example, on a Windows® system with the NVDA screen reader and MATLAB 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:

    X equals one
    Ready prompt
    One variable added to workspace

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

  2. Move the cursor to the Command Window scroll buffer region to hear the last output again by pressing Shift+Tab. You hear:

    Scroll buffer region
    X equals one

  3. Move the cursor back to the command-line prompt by pressing Shift+Tab. You hear:

    Ready prompt

For more information, see Use Screen Reader with MATLAB.

Adjust Zoom Level

To adjust the zoom level of the Editor and Live Editor, use the Ctrl+Mouse Scroll keyboard shortcut or the Ctrl+Plus (+) and Ctrl+Minus (–) keyboard shortcuts. To reset the zoom level, use the Ctrl+Alt+0 keyboard shortcut. On macOS systems, use the Command key instead of the Ctrl key.

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

For more information, see Zoom and Change Desktop Fonts.

Maximize Focus Area

To maximize the space for your current area of focus, hide or minimize the panels that you are currently not using. To hide a panel, click its icon on the sidebar. For example, if the MATLAB desktop is in the default layout with the Files panel and Workspace panel open on the left side of the desktop, you can hide both panels by clicking the icon group for the two panels in the left sidebar. If two or more panels are grouped together, you can minimize each individual panel by clicking the Collapse button to the left of its title bar.

MATLAB desktop with the Files panel collapsed and the Workspace panel expanded. The Files panel and Workspace panel icons are grouped together on the sidebar. The title bar of each panel has an arrow button to collapse and expand the panel.

For more information about minimizing panels, see Configure the Desktop.

Change MATLAB Desktop Colors

You can use themes to change the colors of the MATLAB desktop. To select a theme, in the Command Window, enter preferences Appearance to open the Settings window with the MATLAB Appearance Settings page selected. Then, select a theme from the Desktop Theme list. (since R2025a)

For example, select Dark to select the dark theme. The MATLAB Appearance Settings page shows a preview of the selected theme.

MATLAB Appearance Settings page with the Desktop Theme drop-down list open and dark theme selected. A preview below the drop-down list shows a sample MATLAB desktop with a dark background.

After selecting a theme, you can further customize the colors of the MATLAB desktop by changing the text and background colors:

  1. In the Command Window, enter preferences Colors to open the Settings window with the MATLAB Appearance Colors Settings page selected.

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

    Before R2025a: Select MATLAB > Colors and in the Desktop tool colors section, clear the Use system colors check box to enable the Text and Background fields.

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

    Syntax highlighting and Command Window samples showing a dark grey background and white text

To restore the default text and background colors for the selected theme, click the Restore Default Colors button at the bottom of the Settings window.

For more information about the different ways to change the desktop colors in MATLAB, see Change Desktop Theme and Colors.

Increase Clarity of Plots

You can increase the clarity of plots in MATLAB by changing the size, color, and style of lines and text within the plots.

For example, create a plot with four lines. Specify the width of each line using the LineWidth name-value argument.

plot((0:10)+1,LineWidth=2)
hold on
plot((0:10)+2,LineWidth=2)
plot((0:10)+3,LineWidth=2)
plot((0:10)+4,LineWidth=2)
hold off

Line plot with a blue line, a red line, a yellow line, and a purple line. Each line has a different width.

Further enhance the distinction between the lines by changing the style of each line using the linestyleorder function.

linestyleorder("mixedstyles")

Line plot with a solid blue line, dashed red line, dash-dotted yellow line, and dotted purple line

You also can convert data to sound using the sonify function. For example, convert a vector of sine values to sound and return the sonified data s and sample rate Fs.

y = sin(1:10);
[s,Fs] = sonify(y);

For more information, see Increase Clarity of Plots for Accessibility.

See Also

Functions

Topics