# How can I draw a 3D-cylinder pile up by 2D-circles???

6 visualizzazioni (ultimi 30 giorni)
Amy il 14 Dic 2013
Commentato: Justin Chan il 21 Mar 2019
How can I draw a 3D-cylinder pile up by 2D-circles??? or maybe slice a cylinder into pieces? please help ^^
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Risposte (1)

sixwwwwww il 14 Dic 2013
Modificato: sixwwwwww il 14 Dic 2013
you can make a cylinder from piles as follow using cylinder in MATLAB:
NumberOfPiles = 5; % Number of piles in 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
end
I hope it helps. Good luck!
##### 1 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
Justin Chan il 21 Mar 2019
Hi, what if i have a surface plot constructed by 5 circle 2D plots at the same Y position but different X position in 2D space, how can i find the Volume within the surface?

Accedi per commentare.

### Categorie

Scopri di più su Surface and Mesh Plots in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by