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
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Splines 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!