How to plot the following surface

3 次查看(过去 30 天)
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 个评论
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