Rolve function around axis to create 3D surface.

조회 수: 13 (최근 30일)
MLP
MLP 2020년 6월 30일
댓글: Star Strider 2020년 7월 1일
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!
Star Strider
Star Strider 2020년 7월 1일
As always, my pleasure!

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

추가 답변 (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