No BSD License  

Highlights from
Cylinder Between 2 Points

4.85714

4.9 | 7 ratings Rate this file 23 Downloads (last 30 days) File Size: 2.23 KB File ID: #5468
image thumbnail

Cylinder Between 2 Points

by Per Sundqvist

 

12 Jul 2004 (Updated 14 Jul 2004)

Generalization of the MATLAB function cylinder

| Watch this File

File Information
Description

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.

Acknowledgements
This submission has inspired the following:
Cylinder Surface connecting 2 points
MATLAB release MATLAB 6.5.1 (R13SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
23 Feb 2005 John Hauck  
03 Mar 2008 Daniele Palumbo

Very useful and powerful function.

30 May 2008 fab rob

nice,
but i need a cylinder with transparent surface,
do you know how i can do ??
thanks
fabien (france)

24 Jul 2008 Andreas Reisinger

simple, fast, powerful. thx.

27 Aug 2008 Kazem Edmond

Really easy to use. Works great. Thanks!

17 May 2009 Kazem Edmond

It's great. Thanks so much.

02 Jun 2009 Glen Wardrop

Lovely - worked first time, saved me hours of work

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized Per Sundqvist 22 Oct 2008 07:27:20
plotting Per Sundqvist 22 Oct 2008 07:27:20
cylinder surf two points molecule plots Per Sundqvist 22 Oct 2008 07:27:20
cylinder surf two points molecule plots marius 08 Aug 2011 07:58:43
cylinder surf two points molecule plots SiddharthK 19 Oct 2011 20:55:39

Contact us at files@mathworks.com