f(x,y)=(x^2+y^2)/x = 0

23 views (last 30 days)
Nguyen Phuoc
Nguyen Phuoc on 28 Jun 2020
Edited: VBBV on 24 Jan 2025
How do I plot this function on 3D graph?
Thank you

Answers (2)

madhan ravi
madhan ravi on 28 Jun 2020
doc fimplicit
  5 Comments
Nguyen Phuoc
Nguyen Phuoc on 28 Jun 2020
Edited: Nguyen Phuoc on 28 Jun 2020
fimplicit3 use to graph f(x,y,z)=0 in 3D but I have to draw f(x,y)=0 in 3D
madhan ravi
madhan ravi on 28 Jun 2020
Read my original answer.

Sign in to comment.


VBBV
VBBV on 24 Jan 2025
Edited: VBBV on 24 Jan 2025
@Nguyen Phuoc use fsurf function or mesh function
% simple way
f = @(x,y) (x.^2 + y.^2)./x;
fsurf(f,[0,1])
% 2
x = linspace(0,1,100);
y = linspace(0,1,100);
[X,Y] = meshgrid(x,y);
mesh(X,Y,(X.^2+Y.^2)./X) % use a mesh
view([30,10])

Community Treasure Hunt

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

Start Hunting!