How to retain duplicate while using ScatteredInterpolant
Show older comments
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 Comment
shravani banerjee
on 8 Oct 2018
Did you found your answer as I too have the same problem?
Accepted Answer
More Answers (1)
Francesc Purroy
on 12 Nov 2018
0 votes
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.
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!