contextmenu in axes in GUI

How can I add to a GUI axes a context menu which contains RIght and Left options and inside of them 1 2 and 3 option (for each of them).

2 Comments

How was the gui created? AppDesigner?
with GUIDE

Sign in to comment.

Answers (1)

Adam Danz
Adam Danz on 12 Nov 2019
Edited: Adam Danz on 12 Nov 2019
Follow the example described in the documentation (link below). This code will go in your OpeningFcn function.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Asked:

on 11 Nov 2019

Edited:

on 12 Nov 2019

Community Treasure Hunt

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

Start Hunting!