When does 'interp1' function give 'The grid vector must contain unique points' error?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 29 de Dic. de 2016
Respondida: MathWorks Support Team
el 29 de Dic. de 2016
When does 'interp1' function give 'The grid vector must contain unique points' error?
Respuesta aceptada
MathWorks Support Team
el 29 de Dic. de 2016
This error comes when there are duplicate points in input to 'interp1'.
You can remove duplicates using 'unique' function.
Example:-
>> [x, index] = unique(x);
>> yi = interp1(x, y(index), xi);
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Multirate Signal Processing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!