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

58 ビュー (過去 30 日間)
JAMMI ASHOK
JAMMI ASHOK 2020 年 8 月 24 日
編集済み: Matt J 2020 年 8 月 24 日
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 日
You can use unique() to get rid of duplicate sample points. It will also sort them.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by