What causes "spline" to give NaN for some elements?

1 view (last 30 days)
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
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?

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!