Saving the data from a scatter 3D plot
이전 댓글 표시
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
dpb
2020년 2월 29일
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
2020년 2월 29일
dpb
2020년 2월 29일
"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
2020년 3월 1일
dpb
2020년 3월 1일
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
2020년 3월 1일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!