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!

