![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/431128/image.png)
Plotting the given Trigonometric functions
조회 수: 7 (최근 30일)
이전 댓글 표시
Can someone help me on plotting the function ysin(2x) = xcos(2y)?
댓글 수: 0
채택된 답변
Ameer Hamza
2020년 11월 27일
편집: Ameer Hamza
2020년 11월 27일
You can use fimplicit()
fun = @(x, y) y.*sin(2*x) - x.*cos(2*y);
fimplicit(fun, [-10 10 -10 10])
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/431128/image.png)
댓글 수: 0
추가 답변 (1개)
KSSV
2020년 11월 27일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!