Move through slices in 3 D plot matlab?
조회 수: 11 (최근 30일)
이전 댓글 표시
I have a 3 D plot of 15000 points, where each point is represented by a sphere in X, Y, Z axis. I want to be able to move through slices of my plot through GUI but I am not sure how I can do that. PS: I poltted the points using scatter3 function on MATLAB.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1094625/image.jpeg)
댓글 수: 0
답변 (1개)
Kevin Holly
2022년 8월 11일
You could make a slider that changes the variable xslice
xslice = 0.5;
X = rand(10000,1);
Y = rand(10000,1);
Z = rand(10000,1);
figure
scatter3(X,Y,Z)
figure
scatter3(X(X>xslice),Y(X>xslice),Z(X>xslice))
xlabel('X')
ylabel('Y')
zlabel('Z')
xlim([0,1])
댓글 수: 1
Kevin Holly
2022년 8월 11일
Here, I made an app with the concept. See app attached.
참고 항목
카테고리
Help Center 및 File Exchange에서 Formatting and Annotation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!