Plot f(x,y) = (x+y+xy+1) / xy = 0
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
gunmo gu
el 7 de Jun. de 2016
Comentada: Torsten
el 29 de Dic. de 2022
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 comentarios
Respuesta aceptada
Star Strider
el 7 de Jun. de 2016
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 comentarios
Star Strider
el 29 de Dic. de 2022
Torsten
el 29 de Dic. de 2022
But use
f = @(x,y)(x+y+x*y+1)
to avoid division by 0.
And the zero sets of both functions are equal.
Más respuestas (1)
Ahmed
el 16 de Sept. de 2018
https://www.mathworks.com/matlabcentral/answers/103972-how-to-plot-f-x-y-x-2-y-function-in-matlab
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!