Saving the data from a scatter 3D plot
Show older comments
I have a set of 3D points plotted in a scattered mode, is there anyway to interactively select a subset of this point cloud and save it to the workspace? (without using brush; because I can't get it to work).
The goal is to to ask the user to select a subset of the scatter plot and save the x, y, z values of the selection.
Any help is much appreciated.
6 Comments
dpb
on 29 Feb 2020
There's a bug report the brush doesn't work w/ scatter3 but the fix is to download R2015a so if you have more recent release it would seem should work.
Post a sample test case of what you have; we can't guess.
Feri
on 29 Feb 2020
dpb
on 29 Feb 2020
"The goal is to to ask the user to select a subset of the scatter plot"
And, how do you propose the use is to make this selection, otherwise?
I personally don't do much w/ GUIs so not the greatest help there, but about just asking for either a min,max x/y set of coordinates if a square region is ok or an origin and radius for circular region in the xy plane you've shown?
Then you could just test coordinates being within those bounds.
If the user needs to be able to select individual points or the like, then I'm not sure what other facilities there might be.
Feri
on 1 Mar 2020
dpb
on 1 Mar 2020
Brush does the job, except ... requires assigning a name to the saved the data, and [that] makes it way difficult to use the saved data in a loop with random names)."
I've never used brush so am totally unfamiliar with its syntax/requirements, sorry.
Could you present the user with a selection tool that gives a choice of a variable name and then use it? That should let you handle the problem if so.
As said, I don't do GUIs to any extent as was fortunate to able to hand that task off to folks who really knew how to do so...hence, I'm just guessing here, sorry.
Hopefully somebody else who does know something about it will come along, too...
Feri
on 1 Mar 2020
Accepted Answer
More Answers (0)
Categories
Find more on Scatter Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!