How to set a menu item label as switch constant?

1 view (last 30 days)
Hi,
I am trying to get a selected menu item label in switch condition.
Ex: menu has sub menu list as A,B,C,D,E,F. I have used callbacks to display menu in simulink model pane. Now I want to call them and make run some lines of code after comparing the switch.
Ex: I want the condition as below
selcected_label = ********;(what syntax should I use to get one of the label names selected or clicked ) switch (selected_label) case 'A' ----- ---- ----- case 'B' : : : case 'F' end;

Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!