Rolve function around axis to create 3D surface.

12 次查看(过去 30 天)
Hello,
I am fairly new to matlab and know the basics. I am trying to create a 3D surface from the function y by revolving it around the x axis. The function is the profile of the tip of a bullet and I am looking to obtain a 3D plot. Thank you in advance!
x = linspace(0,1,100);
y = (2).*(x./12).^0.5;

采纳的回答

Star Strider
Star Strider 2020-6-30
  4 个评论
MLP
MLP 2020-7-1
hey thank you so much for taking the time to help me out, it works perfectly!

请先登录,再进行评论。

更多回答(1 个)

Gurpreet Singh
Gurpreet Singh 2020-6-30
Hi Mateo,
It is my understanding that you are trying to create a 3D surface using a 2D plot by revolving it around the x axis.
The following links might help you.

类别

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