필터 지우기
필터 지우기

How to plot a circle 3D surface area, using surf or mesh?

조회 수: 7 (최근 30일)
cancel077
cancel077 2018년 12월 6일
댓글: cancel077 2018년 12월 6일
Good day,
Firstly, I did search online for how to plot, but either it is too advanced or does not fit my purpose.
I am trying to plot a simple 3D surface area where it will show a range of distance and height. Let's say a "safe zone". I would like it in a circle, where the radius is 1300 and its height is 800.
How do I go about it?
I tried something like this, but it gives me errors.
x = 0:5:1300;
y = x;
z = 0:5:800;
mesh(x,y,z)
or
surf(x,y,z)
I did try to use also to perhaps use the surface area of a circle as a function, but failed as well.
x = 0:5:1300;
y = x;
[X,Y] = mesh(x);
F = pi()*X^2.;
surf(X,Y,F)
Thank you in advance,

답변 (1개)

madhan ravi
madhan ravi 2018년 12월 6일
Perhaps see sphere() ? it gives a volumetric object though
  댓글 수: 1
cancel077
cancel077 2018년 12월 6일
I need it to be half a sphere though/semi circle, with a range of "x" and a height of "y". That's why I tried this surface area, but didnt work.

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

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by