scatteredinterpolant differs from sample points
5 次查看(过去 30 天)
显示 更早的评论
a surface created with scatteredinterpolant differs from the sample points it was made from, why ?
1 个评论
Adam
2016-8-4
You told it to interpolate the points so it introduced new points. Depending on what parameters you used these will potentially do what you have shown there when it comes to extrapolating.
采纳的回答
John D'Errico
2016-9-2
scatteredinterpolant will ALWAYS reproduce the data exactly, although it may sometimes introduce tiny noise on the order of eps, just due to floating point arithmetic. Interpolation is interpolation.
Others have suggested extrapolation. That has NOTHING to do with interpolation, and prediction of the original points in your set.
Most likely, this is due to a bug in your code. That essentially, you are not plotting the real data that was used to interpolate the surface. That happens.
So, if you want a valid answer, then you need to provide the data. Show how you tried to plot it. Show what you did. Give an example where you think scatteredinterpolant fails. When you do that, along with the data itself, I'll be able to show what you did wrong.
0 个评论
更多回答(3 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!