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

9 次查看(过去 30 天)
Nguyen Phuoc
Nguyen Phuoc 2020-6-28
编辑: VBBV 2025-1-24
How do I plot this function on 3D graph?
Thank you

回答(2 个)

madhan ravi
madhan ravi 2020-6-28
  5 个评论
Nguyen Phuoc
Nguyen Phuoc 2020-6-28
编辑:Nguyen Phuoc 2020-6-28
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 2020-6-28
Read my original answer.

请先登录,再进行评论。


VBBV
VBBV 2025-1-24
编辑:VBBV 2025-1-24
@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])

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by