Effacer les filtres
Effacer les filtres

How to get brushed data into a variable programmatically?

16 vues (au cours des 30 derniers jours)
HT
HT le 17 Avr 2017
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!

Réponses (1)

Swathik Kurella Janardhan
Swathik Kurella Janardhan le 20 Avr 2017
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 commentaires
HT
HT le 21 Avr 2017
Is there a way to get z points as well? Because i have a 3D plot.
Davide Mastrodicasa
Davide Mastrodicasa le 13 Fév 2020
I'm having troubles with the same problem. I know the question is really old, but, did you find any solution?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Visual Exploration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by