主要内容

Simulink 环境自定义

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

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

工具

Simulink 预设项Settings for Simulink Editor and model files

函数

全部展开

slConvertCustomMenusConvert custom toolbar menu into toolstrip tab (自 R2022a 起)
slCreateToolstripComponentCreate custom Simulink Toolstrip component (自 R2021b 起)
slCreateToolstripTabCreate custom tab for Simulink Toolstrip (自 R2021b 起)
slDestroyToolstripComponentDestroy Simulink Toolstrip component (自 R2021b 起)
slEditToolstripActionOpen file that defines custom Simulink Toolstrip action (自 R2021b 起)
slEditToolstripCommandOpen file that defines custom Simulink Toolstrip command (自 R2021b 起)
slEditToolstripIconOpen file that defines custom Simulink Toolstrip icon (自 R2021b 起)
slEditToolstripWidgetOpen file that defines custom Simulink Toolstrip tab, section, column, or control (自 R2021b 起)
slLoadedToolstripComponentsFind loaded custom Simulink Toolstrip components (自 R2021b 起)
slPersistToolstripComponentSpecify whether custom Simulink Toolstrip component persists across MATLAB sessions (自 R2021b 起)
sl_refresh_customizationsRefresh customizations in the current MATLAB session (自 R2022a 起)
slReloadToolstripConfigReload Simulink Toolstrip configuration (自 R2021b 起)
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 (自 R2021b 起)
slImportFavoriteCommandsImport favorite commands to Simulink quick access toolbar (自 R2021b 起)
slResetFavoriteCommandsReset Simulink Favorite Commands gallery (自 R2021b 起)
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
slValidateContextMenuValidate and debug JSON files that define context menu customization

对象

LibraryBrowser.LBStandaloneDisplay, hide, size, and position Simulink Library Browser

主题

自定义上下文菜单

自定义工具条

其他

注册自定义项