Plot f(x,y) = (x+y+xy+1) / xy = 0
9 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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
2022-12-29
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
2018-9-16
https://www.mathworks.com/matlabcentral/answers/103972-how-to-plot-f-x-y-x-2-y-function-in-matlab
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!