Error: Sample points must be unique and sorted in ascending order.

I have the following data. But when I am trying to interpolate it is giving
Error using matlab.internal.math.interp1
Sample points must be unique and sorted in ascending order.
Error in interp1 (line 154)
VqLite = matlab.internal.math.interp1(X,V,method,method,Xqcol)
Kindly help me out.
Thanks in advance.

 채택된 답변

Matt J
Matt J 2020년 8월 24일
편집: Matt J 2020년 8월 24일

5 개 추천

You can use unique() to get rid of duplicate sample points. It will also sort them.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

제품

릴리스

R2020a

태그

질문:

2020년 8월 24일

편집:

2020년 8월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by