필터 지우기
필터 지우기

How to plot the following surface

조회 수: 2 (최근 30일)
Atom
Atom 2022년 6월 10일
댓글: Sam Chak 2022년 6월 10일
How to plot the following surface:
Which type of parametrization is required to plot it... please give me a code

채택된 답변

Matt J
Matt J 2022년 6월 10일
fsurf(@(x,y) sqrt(x.^2+y.^2)+1, [-3 3 -3 3] )
zlim([1,3])
  댓글 수: 1
Atom
Atom 2022년 6월 10일
편집: Atom 2022년 6월 10일
Would you please show the axes in such a way that the intersect at the vertex (0,0,1) of the inverted cone z-axis vertical along verted upward?

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Matt J
Matt J 2022년 6월 10일
편집: Matt J 2022년 6월 10일
fimplicit3(@(x,y,z) (z-1).^2-x.^2-y.^2, [-3 3 -3 3 1 3] )

Sam Chak
Sam Chak 2022년 6월 10일
Sometimes I have troubles visualizing the geometry. Can I plot like this? It should look like an inverted cone.
x = linspace(-sqrt(2), sqrt(2), 41);
y = x;
[X, Y] = meshgrid(x, y);
Z = sqrt(X.^2 + Y.^2) + 1;
surf(X, Y, Z)
  댓글 수: 4
Atom
Atom 2022년 6월 10일
Nice .. thanks a lot
Sam Chak
Sam Chak 2022년 6월 10일
Don't mention it. Aha... now I remember. You are the one who asked how to draw a Cylindrical structure inside a Dome. It's a good learning experience.

댓글을 달려면 로그인하십시오.

카테고리

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