Cylinder Between 2 Points

版本 1.0.0.0 (1.1 KB) 作者: Per Sundqvist
Generalization of the MATLAB function cylinder
5.7K 次下载
更新时间 2004/7/14

无许可证

Genaralization of the matlab function

[X,Y,Z]=cylinder(R,N). [X,Y,Z]=cylinder2P(R,N,r1,r2);surf(X,Y,Z);

generates a 3D cylinder surface along the axis specified between the points r1 and r2 (which is along the z-axis for "cylinder").

r1=[x1 y1 z1];r2=[x2 y2 z2]; and R, the radius could be a parameterized using a vector R(i) instead of a scalar (as for cylinder). Useful for creating advanced molecule images for example.

引用格式

Per Sundqvist (2024). Cylinder Between 2 Points (https://www.mathworks.com/matlabcentral/fileexchange/5468-cylinder-between-2-points), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13SP1
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Model Building and Assessment 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0