How to retain duplicate while using ScatteredInterpolant
Afficher commentaires plus anciens
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 commentaire
shravani banerjee
le 8 Oct 2018
Did you found your answer as I too have the same problem?
Réponse acceptée
Plus de réponses (1)
Francesc Purroy
le 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.
Catégories
En savoir plus sur Interpolation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!