MATLAB: How to build a 4-inch graph on levels

I need to build a graph, as shown, I only need to display at different levels of other graphs. I found this:

m = 10;
n = 25;
d = 4;
S = rand([m,n,d]);
slice(S, [], [], 1:size(S,3));

image

Can we instead S transfer another graph, for example contour(), to get different graphs at different levels, as shown above? And if so, how?

+5
source share
1 answer

The output from your own link:

m = 10;
n = 25;
d = 4;
S = rand([m,n,d]);
contourslice(S, [], [], 1:size(S,3),10);
view(3);
0
source

All Articles