View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.4 | 7 ratings Rate this file 24 Downloads (last 30 days) File Size: 2.28 KB File ID: #5562 Version: 1.0
image thumbnail




26 Jul 2004 (Updated )

Construct a tube, or warped cylinder, along any 3D curve.

| Watch this File

File Information

TubePlot constructs a tube along any 3D curve. Output is much like the cylinder function.


This file inspired Soap Snake Understanding Complex Functions.

MATLAB release MATLAB 6.5 (R13)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (9)
14 Oct 2016 Yanxiang Zhang

is it possible to plot multiple curves at one time?

Comment only
26 Feb 2016 Reza Ahmadzadeh

Is it possible to get it done with variable radius as well? Consider a case that r= a*cos(t) or so.

28 Feb 2014 Ian Eaves

Minor bug in frenet whether the starting and ending point coincide (leading to different normal/tangent vectors). Easy to fix though!

Comment only
28 Feb 2014 Ian Eaves

25 Aug 2009 Hortense Kirisli

04 Feb 2009 Michael Ashby

Just what I was looking for - great tool for plotting the path of a branch defined by multiple x,y,z coordinates

12 Apr 2008 Peter Lawrence

A nice script.
The "more than 90 deg" issue may be addressed by mollifying the region on the tube in the vicinity of any self-intersection. This is merely a visual "band-aid" measure as it does not stop the surface being plotted internally to the tube near such a self-intersection.

04 Mar 2007 Eddie Mayhew

Excellent! What 90 degree problem? Works great, easy to use, lightning fast and has incredible functionality. Real nice job Ralph! U Da Man!

30 Jul 2004 Ralph Mettier

Very nice. If you could eliminate the 'more than 90 deg' problem, I'd even give it a rating of 5.

03 Apr 2016 1.0

Add BSD license

Contact us