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

조회 수: 32 (최근 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!