How to get brushed data into a variable programmatically?
20 次查看(过去 30 天)
显示 更早的评论
I have a 3D plot. I want to select a region from it and discard the rest x,y,z points. I want to use the brush tool to select the points that i need and save them in a variable using commands. I have seen some posts regarding this issue but still the problem persists. Any help is appreciated. Thanks!
0 个评论
回答(1 个)
Swathik Kurella Janardhan
2017-4-20
You can use the 'BrushData' property to get the data into a variable as mentioned in the answers link
You can get only x,y points with 'BrushData' and you can use 'find' to find the indices of the brush data.
>> z = peaks(25);
>> figure
>> h = mesh(z);
>> data = h.BrushData;
>> indices = find(data);
2 个评论
Davide Mastrodicasa
2020-2-13
I'm having troubles with the same problem. I know the question is really old, but, did you find any solution?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 LaTeX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!