plotting multiple surfaces out of a 3d variable

I have a matrix G(X,Y,Z) that I try to plot as surface for each value of X in the same plot , manually I could do a line of a code for each value of X using squeeze function, but since size(X)=365 it will not look very good )). is there any way to do it more wisely?
thanks

5 Kommentare

Stephen23
Stephen23 am 17 Aug. 2019
"is there any way to do it more wisely?"
Use a loop.
volumeViewer() perhaps
thanks, I have 2016a, where can I get volumeViewer?
Introduced in R2017a.
Look in the File Exchange for "vol3d v2"
Or perhaps you should just use slice https://www.mathworks.com/help/matlab/ref/slice.html
vol3d did the job, put your answer to 'answer' so I can accept it. thanks

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 18 Aug. 2019

0 Stimmen

Look in the File Exchange for "vol3d v2"
Or perhaps you should just use slice https://www.mathworks.com/help/matlab/ref/slice.html

Weitere Antworten (0)

Produkte

Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by