What causes "spline" to give NaN for some elements?
1 view (last 30 days)
Show older comments
My code is
elev=spline(tm,el,tt);
Neither tm nor el contain NaN elements. How can I resolve the issue of getting NaN in spline interpolation? What causes spline to return NaN?
1 Comment
Walter Roberson
on 9 Jun 2015
is length(el) the same as length(tm) or is it 2 greater than length(tm) ?
Do the NaN occur at tt locations that are beyond the original range of tm?
Answers (0)
See Also
Categories
Find more on Splines in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!