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

2 ビュー (過去 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 Center および File ExchangeGraphics Objects についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by