채택된 답변

Ameer Hamza
Ameer Hamza 2020년 11월 27일
편집: Ameer Hamza 2020년 11월 27일

0 개 추천

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

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.

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

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

태그

질문:

2020년 11월 27일

댓글:

2020년 11월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by