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

3 Ansichten (letzte 30 Tage)
Sara am 17 Mai 2021
Kommentiert: Sara am 18 Mai 2021
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

Antworten (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov am 17 Mai 2021
You should try this function file. Download and run:
  1 Kommentar
Sara am 18 Mai 2021
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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by