truncated cone plot
21 views (last 30 days)
Show older comments
Hi everybody, I'm just trying to plot and save a 3D matrix of points that describes a truncated cone. I've realized it with a set of concentric circles (or, better to say, one-period-spirals) reducing the external size from floor to floor. May i ask you if you know how to realize a truncated cone (just the surface) with only one spiral growing from the base to the top? Thanks for your time
0 Comments
Accepted Answer
the cyclist
on 22 May 2012
It is not perfectly clear to me what you want, but here is a parameterization that sounds close to what I think you mean:
t = 30:0.1:100;
az = 0.1;
z = az*t;
r0 = 10000;
ar = -1;
r = r0 + r0*t;
at = 0.05;
theta = at*t;
x = r .* cos(t);
y = r .* sin(t);
figure
plot3(x,y,z,'.-')
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!