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

 采纳的回答

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

更多回答(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.

类别

帮助中心File Exchange 中查找有关 Function Creation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by