필터 지우기
필터 지우기

How to draw a cylinder with Z axis length greater than 1?

조회 수: 1 (최근 30일)
AS
AS 2016년 12월 27일
답변: Star Strider 2016년 12월 27일
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.

채택된 답변

Star Strider
Star Strider 2016년 12월 27일
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개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by