How to retain duplicate while using ScatteredInterpolant
Mostrar comentarios más antiguos
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 comentario
shravani banerjee
el 8 de Oct. de 2018
Did you found your answer as I too have the same problem?
Respuesta aceptada
Más respuestas (1)
Francesc Purroy
el 12 de Nov. de 2018
0 votos
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.
Categorías
Más información sobre Interpolation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!