3d plot by using points for generating hollow cylinder

조회 수: 7 (최근 30일)
F Mehr
F Mehr 2014년 7월 7일
답변: Chad Greene 2014년 7월 7일
Hi, I want to generate a hollow cylinder according to my 16 points where coordinate's points in x,y,z coordinate are: (r2 is outer radius r1 is inner radius L is length)
[0 0 r2];
[L 0 r2];
[0 -r2 0];
[L -r2 0];
[0 0 -r2];
[L 0 -r2];
[0 r2 0];
[L r2 0];
[0 0 r1];
[L 0 r1];
[0 -r1 0];
[L -r1 0];
[0 0 -r1];
[L 0 -r1];
[0 r1 0];
[L r1 0];
How can I do that? Thank you.

채택된 답변

Chad Greene
Chad Greene 2014년 7월 7일
You can create patch objects for each component (outside, inside, and two ends). Try typing doc patch for info on patch objects. The drawCylinder function described here might help. Or this might help.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by