How can I draw a 3D-cylinder pile up by 2D-circles???
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How can I draw a 3D-cylinder pile up by 2D-circles??? or maybe slice a cylinder into pieces? please help ^^
0 Kommentare
Antworten (1)
sixwwwwww
am 14 Dez. 2013
Bearbeitet: sixwwwwww
am 14 Dez. 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
end
See following link for more information about cylinder: http://www.mathworks.com/help/matlab/ref/cylinder.html
I hope it helps. Good luck!
1 Kommentar
Justin Chan
am 21 Mär. 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?
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!