필터 지우기
필터 지우기

Adapting a paraboloid code

조회 수: 3 (최근 30일)
Jonathan Bird
Jonathan Bird 2018년 4월 12일
댓글: Walter Roberson 2018년 4월 12일
I found the following code to plot a paraboloid but now I need to adapt it to change the base radius and height, thanks
[r,the]=meshgrid([0:0.1:5],[0:pi/10:2*pi]);
x1=r.*cos(the);
y1=r.*sin(the);
z1=x1.^2+y1.^2;
surf(x1,y1,z1)
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 4월 12일
The radii are the [0:0.1:5] values in the meshgrid()

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Geology에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by