How to select a line from a plot with right click and do something?

조회 수: 7 (최근 30일)
Alon Rozen
Alon Rozen 2021년 10월 21일
답변: Sathvik 2024년 11월 11일
Hi,
I have figure with many lines ploted.
When opened in 'Plot Brower' I can right click on one of the lines and perform few tasks from a menu which is opend.
I want to be able to do similar thing on a figure I created - with my own actions.
How can I do it? How to select the line? How to create a menu of options/
Thanks,
Alon

답변 (1개)

Sathvik
Sathvik 2024년 11월 11일
Hi
You can use the "get" and "set" function to query and set graphics object properties. You can refer to the below documentation links for more information:

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by