MATLAB : How to build 4d plot per levels

2019-06-22 09:37发布

问题:

I need to build a graph as shown, only need to be displayed at different levels of other plots. I found this:

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

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

回答1:

Inferring from your own link:

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


标签: matlab plot 4d