Plotting the given Trigonometric functions
显示 更早的评论
Can someone help me on plotting the function ysin(2x) = xcos(2y)?
采纳的回答
更多回答(1 个)
x = linspace(-pi,+pi);
y = x ;
[X,Y] = meshgrid(x,y) ;
Z = Y.*sin(2*X)-X.*cos(2*Y) ;
surf(X,Y,Z)
colorbar
2 个评论
Adrian Oblena
2020-11-27
KSSV
2020-11-27
Use pcolor instead of surf. Also have a look on contour.
类别
在 帮助中心 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

