Customizing Simulink block diagram options

I want to add some custom options to my simulink models. I want to be able to right click on a simulink subsystem and have some options that I have defined available. I know that to add to the Tools menu you should use:
cm.addCustomMenuFcn('Simulink:ToolsMenu', @getMyMenuItems);
Along with the other necessary functions and schemas but what is the syntax for adding options to the menu that appears when you right click in a simulink model?

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 6월 27일

2 개 추천

It doesn't look like you can customize context (right-click) menus at this point. As per the documentation, you can only customize the Editor menu, Library Browser and Dialog Box controls. I would recommend confirming this limitation with MathWorks Tech Support and submit an enhancement request.

카테고리

도움말 센터File Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품

태그

질문:

2012년 6월 27일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by