3-d plotting surface and contour
Ältere Kommentare anzeigen
I am trying to plot a figure (a ships hull). I want to plot a surface plot and a contour plot but I want the contour plot on the bottom of the Z axis. So if the z axis runs from 0 up to 2 the hull goes from 2 down to 1. Then i want a gap and the contour plot on 0 so its at the bottom of the graph not at the bottom of the figure. I tried using surfc and surf and contour but I can't figure out how to move the contour graph down the Z axis so it is separate of the hull. I hope that makes sense. Thanks.
1 Kommentar
Sean Smith
am 30 Sep. 2011
Antworten (2)
Fangjun Jiang
am 30 Sep. 2011
Will this example help?
A=peaks;
surf(A+10);
hold on;
contour(A);
grid on;
Walter Roberson
am 30 Sep. 2011
0 Stimmen
You should not require anything more than "hold on". contour() outputs patch objects that, in effect, have Z of 0.
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!