主要内容

MATLAB 桌面布局概述

从 R2025a 开始,MATLAB® 包含新桌面布局,具有可自定义的边栏,用于访问侧栏面板,如用于管理断点的“调试器”面板、用于协作的“工程”面板以及用于与 Git™ 和 SVN 交互的“源代码管理”面板。更新后的布局还包括主题、新图窗体验、全局搜索、改进的可访问性等。

桌面布局

使用具有可自定义边栏的新布局来访问桌面。

Animation of moving the Workspace panel from the left side of the desktop to the right, opening the Debugger panel, moving the Workspace panel back, and regrouping it with the Files panel

桌面左侧、右侧和底部的边栏显示停靠在桌面中的工具。

  • 通过点击边栏中的图标显示和隐藏面板。

  • 通过拖动面板标题栏或图标移动面板。

  • 使用打开更多面板按钮打开其他面板。

有关如何配置桌面布局的详细信息,请参阅配置桌面

主题

使用主题更改 MATLAB 桌面颜色。

Animation of opening the Settings window, setting the desktop theme to dark, and then setting it back to the system theme, which is light

要选择深色主题,请执行以下操作:

  • 转到主页选项卡,然后在环境部分点击设置

  • 导航到 MATLAB > 外观。

  • 桌面主题设置为 Dark

  • (可选)将图窗主题设置为使用不同主题创建图形。

有关详细信息,请参阅更改桌面主题和颜色

图窗

在停靠的图窗容器中为图窗组织、浏览、自定义和生成代码。

Animation of using the Figure toolstrip to interactively add a title, x and y labels, and a legend to a line plot

默认情况下,图窗以选项卡形式在 MATLAB 桌面的停靠图窗容器中打开。

  • 通过取消停靠、重新排列选项卡或平铺多个图窗来自定义打开图窗的布局。

  • 使用工具条快速自定义和注解图窗。

  • 为图窗交互和自定义自动生成可重现的代码。

全局搜索

使用搜索来访问工具条操作、设置和帮助中心资源。

Animation of using the search box to search for the word "function", and then clicking the "New Live Function" toolstrip item in the results to create a new live function

使用桌面右上角的搜索框访问:

  • 工具条操作

  • 设置

  • 帮助中心资源,包括函数、模块、示例、答案、视频

代码建议

在命令行窗口中自动显示代码建议。

Animation of typing a plot command in the Command Window with MATLAB suggesting input arguments and name-value arguments

当您在命令行窗口中键入时,MATLAB 自动提供实时建议。

  • 建议包括函数名称、MATLAB 对象、图形属性等。

  • MATLAB 还显示函数的基本语法。

  • 要禁用或更改默认行为,请使用命令行窗口的“建议”设置。

有关详细信息,请参阅代码建议

辅助功能

使用屏幕阅读器和键盘与 MATLAB 交互并调整颜色和缩放级别。

MATLAB desktop with the Navigation Keyboard Shortcuts dialog box open showing the shortcuts for navigating MATLAB

MATLAB 提供几项功能来帮助使其对用户可访问。

  • 使用键盘快捷方式导航桌面。

  • 使用屏幕阅读器和键盘与工具交互。

  • 通过更改桌面颜色或放大编辑器和实时编辑器使桌面更可见。

有关详细信息,请参阅Accessibility in MATLAB

另请参阅

主题