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

67 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by