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!