Effacer les filtres
Effacer les filtres

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

101 vues (au cours des 30 derniers jours)
JAMMI ASHOK
JAMMI ASHOK le 24 Août 2020
Modifié(e) : Matt J le 24 Août 2020
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.

Réponse acceptée

Matt J
Matt J le 24 Août 2020
Modifié(e) : Matt J le 24 Août 2020
You can use unique() to get rid of duplicate sample points. It will also sort them.

Plus de réponses (0)

Catégories

En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by