is interp1(x, v, x(k), mtd) == v(k) always true?
2 views (last 30 days)
Show older comments
Naor Movshovitz
on 5 Dec 2016
Commented: Naor Movshovitz
on 5 Dec 2016
is
interp1(x, v, x(k), mtd) == v(k)
always true or does it depend on method and/or type of x and v? Followup: is the answer documented?
Accepted Answer
Walter Roberson
on 5 Dec 2016
Yes, guaranteed. interp1 calls griddedInterpolant to do the work and that routine says,
"This surface always passes through the sample values at the point locations."
2 Comments
More Answers (0)
See Also
Categories
Find more on Mathematics and Optimization 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!