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

조회 수: 8 (최근 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