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!