필터 지우기
필터 지우기

Plot f(x,y) = (x+y+xy+1) / xy = 0

조회 수: 5 (최근 30일)
gunmo gu
gunmo gu 2016년 6월 7일
댓글: Torsten 2022년 12월 29일
f(x,y) = (x+y+xy+1) / xy = 0
Hi, How can I plot 2D of the function above on MUPAD or Note ? It is simple 2D x, y space but I couldn't figure it out.
Thank you.

채택된 답변

Star Strider
Star Strider 2016년 6월 7일
You can do that with the Symbolic Math Toolbox and the fcontour function, setting ‘LevelList’ to a vector of zeros:
syms x y
f(x,y) = (x+y+x*y+1) / (x*y);
figure(1)
fc = fcontour(f);
fc.LevelList = [0 0];
See the documentation on fcontour for details.
  댓글 수: 5
Star Strider
Star Strider 2022년 12월 29일
@Matthew — Now, yes. The fimplicit function was introduced in R2016b, so it likely wasn’t available when I posted that answer.
Torsten
Torsten 2022년 12월 29일
But use
f = @(x,y)(x+y+x*y+1)
to avoid division by 0.
And the zero sets of both functions are equal.

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

추가 답변 (1개)

Ahmed
Ahmed 2018년 9월 16일
https://www.mathworks.com/matlabcentral/answers/103972-how-to-plot-f-x-y-x-2-y-function-in-matlab

카테고리

Help CenterFile Exchange에서 2-D Function Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by