How to put out Z-direction in 3D scattering / image

조회 수: 1 (최근 30일)
Sara
Sara 2021년 5월 17일
댓글: Sara 2021년 5월 18일
Hello,
I want pul out a z- direction in scattering3 data.
I have a scattering 3D data and I use ginput to i dentfy the xy-coorrdnates, so I want to know the all the values in the z- direction (coordnates) for this xy-coordnates that was sleected using ginput function.
I have looked at select3d function but for some reason the MATLAB does not support some functuon that used. I also looked at the cleckA3DPoint function and rbb3select. There is no help from that.
x = 1:10;
y = 1:10;
z = 1:10;
[X,Y,Z] = meshgrid(x,y,z);
figure, scatter3(X(:),Y(:),Z(:))
G = ginput

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 5월 17일
You should try this function file. Download and run:
https://www.mathworks.com/matlabcentral/fileexchange/34939-ginput-3d?s_tid=answers_rc2-3_p6_MLT
  댓글 수: 1
Sara
Sara 2021년 5월 18일
I have tried this one too. This function is good. The fuinction set the z as zero if the plane is xy and set y as zero if the plane is xz and so on.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by