필터 지우기
필터 지우기

Plotting the given Trigonometric functions

조회 수: 7 (최근 30일)
Adrian Oblena
Adrian Oblena 2020년 11월 27일
댓글: KSSV 2020년 11월 27일
Can someone help me on plotting the function ysin(2x) = xcos(2y)?

채택된 답변

Ameer Hamza
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])

추가 답변 (1개)

KSSV
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
Adrian Oblena
Adrian Oblena 2020년 11월 27일
Can it be plotted only in 2D? Value of x and y only? Thank you
KSSV
KSSV 2020년 11월 27일
Use pcolor instead of surf. Also have a look on contour.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by