the question asks to subplot the contours any idea how?
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
KSSV
2017-3-7
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!