Problem with the interp function
조회 수: 4 (최근 30일)
이전 댓글 표시
"Error using interp (line 68)
Length of data sequence must be at least 9.
You either need more data or a shorter filter (L)."
How might I be able to fix this?
댓글 수: 1
Walter Roberson
2019년 11월 15일
Is it the case that for any input vector [a b c] with factor 3, that the output would be [a, 2/3*a+1/3*b, 1/3*a+2/3*b, b, 2/3*b+1/3*c, 1/3*b+2/3*c, c]
채택된 답변
Walter Roberson
2019년 11월 15일
편집: Walter Roberson
2019년 11월 15일
out_vector = [reshape((reshape(diff(time_vector), [], 1) * (0:factor-1)/factor + reshape(time_vector(1:end-1),[],1)).',1,[]), time_vector(end)];
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!