How can I create this kind of plot? It is like a picture that is composed of 3 matrices of coordinates points (x,y,z) and its plot by layers (6 layers)

1 view (last 30 days)

Answers (1)

Star Strider
Star Strider on 28 Mar 2015
I’m not certain what plots you want to stack, but you can certainly stack surf plots.
For Example:
A = randi(5, 10, 10);
B = randi(5, 10, 10);
C = randi(5, 10, 10);
[X,Y] = meshgrid(0:9, 0:0.1:0.9);
figure(1)
surf(X, Y, A+5)
hold on
surf(X, Y, B+15)
surf(X, Y, C+25)
hold off
grid on

Community Treasure Hunt

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

Start Hunting!