Cylinder

버전 1.0.0.0 (2.21 KB) 작성자: J. Divahar
This function will construct a 3d cylinder connecting two points (centers)
다운로드 수: 6.9K
업데이트 날짜: 2007/3/16

라이선스 보기

This function constructs a cylinder connecting two center points

Usage :
[Cylinder EndPlate1 EndPlate2] = Cylinder(X1+20,X2,r,n,'r',closed,lines)

Cylinder-------Handle of the cylinder
EndPlate1------Handle of the Starting End plate
EndPlate2------Handle of the Ending End plate
X1 and X2 are the 3x1 vectors of the two points
r is the radius of the cylinder
n is the no. of elements on the cylinder circumference (more--> refined)
cyl_color is the color definition like 'r','b',[0.52 0.52 0.52]
closed=1 for closed cylinder or 0 for hollow open cylinder
lines=1 for displaying the line segments on the cylinder 0 for only
surface

Typical Inputs
X1=[10 10 10];
X2=[35 20 40];
r=1;
n=20;
cyl_color='b';
closed=1;

NOTE: There is a MATLAB function "cylinder" to revolve a curve about an
axis. This "Cylinder" provides more customization like direction and etc

인용 양식

J. Divahar (2024). Cylinder (https://www.mathworks.com/matlabcentral/fileexchange/13995-cylinder), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14SP1
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Surface and Mesh Plots에 대해 자세히 알아보기
도움

줌: Cone

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Thanks to Mr. Charles Warren.

The error that he has indicated has been corrected.