How can I draw a 3D-cylinder pile up by 2D-circles???
10 views (last 30 days)
sixwwwwww on 14 Dec 2013
Edited: sixwwwwww on 14 Dec 2013
you can make a cylinder from piles as follow using cylinder in MATLAB:
NumberOfPiles = 5; % Number of piles in cylinder
Radius = 1; % Radius of cylinder
NumberOfPoints = 100; % Number of points to control smoothness of sylinder curve, more points better smoothness
for i = 1:NumberOfPiles
[x, y, z] = cylinder(Radius, NumberOfPoints);
surf(x, y, z + i), hold on
See following link for more information about cylinder: http://www.mathworks.com/help/matlab/ref/cylinder.html
I hope it helps. Good luck!