Matlab插值in​terp1出现错误“​采样点必须唯一”。

57 次查看(过去 30 天)
bromse
bromse 2023-5-15
回答: bebaer 2023-5-15
您好!请问Matlab插值interp1出现错误“采样点必须唯一”
这种情况是什么原因?

采纳的回答

bebaer
bebaer 2023-5-15
插值时相当于横坐标的向量必须单调递增,你这种肯定是有重复的值,比如
1, 2, 3, 4, 5, ... % 没问题
3, 2, 1, 4, 5, ... % 不行,非单调递增
1, 2, 2, 2, 5, ... % 不行,有重复元素

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 插值 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!