Cylinder Between 2 Points
Keine Lizenz
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.
Zitieren als
Per Sundqvist (2025). Cylinder Between 2 Points (https://www.mathworks.com/matlabcentral/fileexchange/5468-cylinder-between-2-points), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- AI and Statistics > Statistics and Machine Learning Toolbox > Regression > Model Building and Assessment >
Tags
Quellenangaben
Inspiriert: Simple kinematic robot arm program, Cylinder Surface connecting 2 points
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |