Trying to resample data in a uniform manner (with some twists)

4 ビュー (過去 30 日間)
Eric Dinges
Eric Dinges 2016 年 7 月 29 日
編集済み: Stephen23 2016 年 9 月 13 日
I have a set of x and y coordinates that create a spline.
Currently, the coordinates that make up the spline are non-uniformly spaced in both x and y axes. How can I resample them so that there is uniform spacing? To be more specific, the coordinates are locations along a tube. I would love some way of defining the distance traveled along the tube so that I could specify a percent distance along the tube and it would translate to a specific length of the matrix.
I am familiar with the resample function, but it requires that there is a dependent (uniformly increasing) matrix is provided.
Thank you in advance.

回答 (1 件)

Joost
Joost 2016 年 9 月 13 日
I found an interesting contribution on MatlabCentral: ArcLength
Or otherwise: If you have a parametric spline (x(t) and y(t)), then you could use t as monotonously increasing variable, and resample x and y separately.
Furthermore it is good to know that there is no general analytic solution for the arc length of a spline. Interpolation, re-sampling and numerical approximation are the way to go.

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by