How to apply fourier transform to a cubic spline

12 次查看(过去 30 天)
Hi all,
I have some data that I can fit to a cubic spline interpolant in cftool. I now want to apply a fourier transformation to this fitted spline, which is represented as a piecewise polynomial in Matlab. Is there any way to do that? Note that I do not want to apply the fourier transformation directly on the original data, rather I want to apply it to the continuous function represented by the spline. I hope this makes sense.
Thanks, Sirisha

采纳的回答

Image Analyst
Image Analyst 2014-9-3
The FFT works numerically on actual arrays of numbers, not a list of cubic coefficients, which is essentially what a spline description is. So you need to interpolate the spline to fill in data points in between the knots. See my attached demo. Then call fft() on the dats.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Splines 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by