Filter löschen
Filter löschen

Multilevel contour plots

3 Ansichten (letzte 30 Tage)
Joe
Joe am 13 Jul. 2011
Basically what I want to do is:
I have created three sets of data and have contour plots for them. Now all I want to do is display them all, at the same time, at different Z locations. Imagine you know the contour of some value for three different floors of a building and you just want to display all of them at the same time with space between them.
I feel like this should be pretty simple but I am having trouble finding a solution.

Antworten (1)

Rick Rosson
Rick Rosson am 13 Jul. 2011
The following code shows how to create a contour plot at 3 different locations other than the Z=0 plane:
N = 20;
L = 3;
A = zeros(N,N,L);
for k = 1:L
A(:,:,k) = peaks(N);
h = surfc(A(:,:,k));
hold on;
set(h(1),'visible','off');
for i = 2:length(h);
newz = get(h(i),'Zdata') + 5*k;
set(h(i),'Zdata',newz)
end
end
For more information:
docsearch('"Changing the Offset of a Contour"');
HTH.

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by