How to draw a cylinder with Z axis length greater than 1?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
AS
am 27 Dez. 2016
Beantwortet: Star Strider
am 27 Dez. 2016
https://in.mathworks.com/help/matlab/ref/cylinder.html
Cylinder command generates a unit cylinder. I want a cylinder with a higher value of Z axis length.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 27 Dez. 2016
Try this:
[X,Y,Z] = cylinder(1, 10);
Z(2,:) = Z(2,:) * 10; % Cylinder 10 Units Long
figure(1)
surf(X, Y, Z)
grid on
axis equal
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D 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!