主要内容

本页翻译不是最新的。点击此处可查看最新英文版本。

Simulink 环境自定义

R2026a
在菜单和对话框中添加或删除项目、更改显示方式和自动保存设置

在 Simulink® 环境中自定义上下文菜单、工具条、快速访问栏、快速插入菜单、库浏览器、对话框等。

工具

Simulink 预设项Settings for Simulink Editor and model files

函数

全部展开

slConvertCustomMenusConvert custom toolbar menu into toolstrip tab (自 R2022a 起)
slCreateToolstripComponentCreate custom Simulink Toolstrip component
slCreateToolstripTabCreate custom tab for Simulink Toolstrip
slDestroyToolstripComponentDestroy Simulink Toolstrip component
slEditToolstripActionOpen file that defines custom Simulink Toolstrip action
slEditToolstripCommandOpen file that defines custom Simulink Toolstrip command
slEditToolstripIconOpen file that defines custom Simulink Toolstrip icon
slEditToolstripWidgetOpen file that defines custom Simulink Toolstrip tab, section, column, or control
slLoadedToolstripComponentsFind loaded custom Simulink Toolstrip components
slPersistToolstripComponentSpecify whether custom Simulink Toolstrip component persists across MATLAB sessions
sl_refresh_customizationsRefresh customizations in the current MATLAB session (自 R2022a 起)
slReloadToolstripConfigReload Simulink Toolstrip configuration
slUpdateToolstripComponentReload specific custom toolstrip component (自 R2023b 起)
slUIDeveloperModeGet extension point, action, and icon names of widgets in Simulink Toolstrip and context menu (自 R2026a 起)
LibraryBrowser.LibraryBrowser2获取库浏览器对象的句柄
sl_refresh_customizationsRefresh customizations in the current MATLAB session (自 R2022a 起)
slExportFavoriteCommandsExport favorite commands from Simulink quick access toolbar
slImportFavoriteCommandsImport favorite commands to Simulink quick access toolbar
slResetFavoriteCommandsReset Simulink Favorite Commands gallery
slblocksearchdb.untrainmodelRemove the effect of a model from the suggestion engine
slblocksearchdb.trainfrommodelTrain suggestion engine to improve quick insert results based on one model
slblocksearchdb.trainfrommodelsindirTrain suggestion engine to improve quick insert results based on models in a folder
slblocksearchdb.untrainmodelsindirRemove the effects of models from the suggestion engine
slblocksearchdb.untrainallRemove the effects of all added models from the suggestion engine
Simulink.history.clearClear the Simulink start page and editor history

扩展点

全部展开

RichMenu Extension PointsAdd widgets to Simulink context menus
slUIDeveloperModeGet extension point, action, and icon names of widgets in Simulink Toolstrip and context menu
slConvertCustomContextMenusConvert Simulink context menu customizations to extension points format
slReloadStudioConfigReload Simulink studio configuration

对象

LibraryBrowser.LBStandalone显示、隐藏、调整大小和定位 Simulink 库浏览器

主题

自定义上下文菜单

自定义工具条

其他

注册自定义项