curvspace
by Yo Fukushima
22 Mar 2005
(Updated 24 Mar 2005)
Generate evenly spaced points along an existing curve in 2D or 3D.
|
Watch this File
|
| File Information |
| Description |
CURVSPACE(P,N) generates N points that interpolates a curve (represented by a set of points) with an equal spacing. Each row of P defines a point, which means that P should be a n x 2 (2D) or a n x 3 (3D) matrix.
(Example)
x = -2*pi:0.5:2*pi;
y = 10*sin(x);
z = linspace(0,10,length(x));
N = 50;
p = [x',y',z'];
q = curvspace(p,N);
The above example creates 50 evenly spaced points along a sinusoidal curve. |
| Acknowledgements |
This submission has inspired the following:
Kirchhoff Vortex Contour Dynamics Simulation
|
| MATLAB release |
MATLAB 5.3.1 (R11.1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (8) |
| 18 May 2005 |
meng mingyang
|
|
|
| 18 May 2005 |
meng mingyang
|
|
|
| 03 Feb 2006 |
Valer Jurcak
|
|
|
| 25 Mar 2006 |
Daniel Daniel
|
|
|
| 17 Jan 2007 |
Sven Mensing
|
|
|
| 08 Jan 2009 |
Andrea Tagliasacchi
|
|
|
| 22 Apr 2011 |
Erhong
|
|
|
| 31 Jan 2012 |
TCH
|
|
|
|
Contact us at files@mathworks.com