Building a GUI - When I use scatter3, it won't let me 'brush/select' the right data (image provided)
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to implement a button that returns the selected points when brushed. As you can see from the image, the 'rectangle' is down and to the left of the selected points. I pan the point cloud around and the same issue happens - I have tried to replot multiple times including other data.
댓글 수: 0
답변 (1개)
Monisha Nalluru
2021년 4월 12일
From my understanding you want to get the data which is brushed in a plot when a button is pressed.
Add a callback to Button and try the similar operation to get brushed data indices
function ButtonPushed(app,event)
% let handle is app.uifigure1 which has brush data
brusheddata = app.uifigure1.BrushData; % fetching the BrushData
indices = find(data); % finding indices having brushdata
% use these indices and get actually data
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Point Cloud Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!