How do I get the brush tool to ignore points?
3 次查看(过去 30 天)
显示 更早的评论
Let's say I have a single figure with multiple line or scatter objects sharing the same axis.
I would like to use the brush tool to select points only from some subset of those objects. e.g. I want to use the brush tool to select the blue points and not the green points.
Can I do this?
If not, is there an alternative way to allow a user to select groups of points on a plots and use that data programatically that would disallow the selecting of certain points?
0 个评论
回答(1 个)
Kevin Holly
2021-10-19
figure
scatter(rand(20,1),rand(20,1),'g')
hold on
scatter(rand(20,1),rand(20,1),'b')
Right Click and select "Export Brushed..."
Select data you are interested in and select "OK"
Choose variable name for the data.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!