is interp1(x, v, x(k), mtd) == v(k) always true?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Naor Movshovitz
el 5 de Dic. de 2016
Comentada: Naor Movshovitz
el 5 de Dic. de 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?
2 comentarios
Respuesta aceptada
Walter Roberson
el 5 de Dic. de 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 comentarios
Guillaume
el 5 de Dic. de 2016
Editada: Guillaume
el 5 de Dic. de 2016
... except that "interp1 calls griddedInterpolant" is not actually documented and so could be considered an implementation detail subject to change.
So it's guaranteed by the code as currently implemented but not by the documentation.
Más respuestas (0)
Ver también
Categorías
Más información sobre Mathematics and Optimization en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!