How to retain duplicate while using ScatteredInterpolant
显示 更早的评论
I want to retain duplicates when using ScatteredInterpolant because I am getting warning:"Warning: Duplicate data points have been detected and removed - corresponding values have been averaged. "
1 个评论
shravani banerjee
2018-10-8
Did you found your answer as I too have the same problem?
采纳的回答
更多回答(1 个)
Francesc Purroy
2018-11-12
0 个投票
In some cases you can have a set of x and y data where the values of x and/or y are repeated as Aristo was showing. A simple way around is to add some noise to your data as with randn then ScatterInterpolant does not consider the values to be equal and it works for me.
类别
在 帮助中心 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!