MATLAB: How to plot a circle with a given radius and center and i need to extract x,y,z points
3d plots
i know to extract x,y using
th = 0:pi/50:2*pi;
xunit = r * cos(th) + x;
yunit = r * sin(th) + y;
but how will i get z co-ordinate if i need to plot one 3d circle.
Best Answer
The circle you described is two-dimensional. The‘z’ coordinate is uniformly0. If you want a circle above the plane, just define a new variable‘zunit’ and define a vector to define it. This code puts the circle atz=5:
Best Answer