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

19 ビュー (過去 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 Center および File Exchange2-D Function Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by