how to implement Push Button right click with options like open & close using matlab guide

 Accepted Answer

if you are using guide them go the Menu Editor ,click wontext menu addm filled and items ,the assigned it to the object you want from the inspector or youcan added by coding some line , as Arthur mentioned above

More Answers (1)

I guess you want to make a context menu:
If you use guide, I'd simply add the code that defines the context menu in the OpenFcn of the GUI.

Categories

Find more on Function Creation 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!