the question asks to subplot the contours any idea how?
5 views (last 30 days)
Show older comments
x = linspace (-1,1); y = linspace (-1,1); [X, Y] = meshgrid(x,y); Z=7*sin(pi.*X).*cos(3*pi.*X);
surf(X,Y,Z ) hold on contour(X,Y,Z) hold off
rotate3d on
the question asks to subplot the contours any idea how?
0 Comments
Answers (1)
KSSV
on 7 Mar 2017
x = linspace (-1,1);
y = linspace (-1,1);
[X, Y] = meshgrid(x,y);
Z=7*sin(pi.*X).*cos(3*pi.*X);
subplot(211)
surf(X,Y,Z )
subplot(212)
contour(X,Y,Z)
rotate3d on
2 Comments
See Also
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!