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

158 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Matt J
Matt J el 24 de Ag. de 2020
Editada: Matt J el 24 de Ag. de 2020
You can use unique() to get rid of duplicate sample points. It will also sort them.

Más respuestas (0)

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by