How to graphically represent 3D array
Mostra commenti meno recenti
Hi,
I have the following problem:
3d array is generated and consists of 0s and 1s. I need to draw a line (in 3D) which connects all elements which value is 1.
I have tried with plot3 and scatter3 functions, but I haven't achieve any success. The only thing I get is empty space.
I have using following commands:
plot3(Xcoordinate,Ycoordinate,Zcoordinate,'r','linewidth',2)
Or
scatter3(Xcoordinate,Ycoordinate,Zcoordinate,'r','linewidth',2)
X, Y, Zcoordinate are vectors reprsenting axes of a 3d array.
Thank you for your time,
Dejan
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Graphics Object Programming in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!