How to retain duplicate while using ScatteredInterpolant
Mostra commenti meno recenti
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 Commento
shravani banerjee
il 8 Ott 2018
Did you found your answer as I too have the same problem?
Risposta accettata
Più risposte (1)
Francesc Purroy
il 12 Nov 2018
0 voti
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.
Categorie
Scopri di più su Interpolation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!