curvspace
版本 1.0.0.0 (3.3 KB) 作者:
Yo Fukushima
Generate evenly spaced points along an existing curve in 2D or 3D.
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.
引用格式
Yo Fukushima (2026). curvspace (https://ww2.mathworks.cn/matlabcentral/fileexchange/7233-curvspace), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R11.1
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Creating and Concatenating Matrices 的更多信息
标签
致谢
启发作品: Interpolate Curve - Simple 2D or 3D Curve Interpolation, Kirchhoff Vortex Contour Dynamics Simulation
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0.0 | BSD License added. |
