interpolation in a vector
이전 댓글 표시
Hey
I have a vector like this:
v = [1 24 56 87 98 45 67 89 34 56]
and my time axis;
t = [1 2 3 4 5 6 7 8 9 10]
If a want to interpolate the value at time point t=9, how can I do that?
Thanks in advance
댓글 수: 4
Adam
2020년 2월 5일
You don't need to interpolate for t = 9, you have an exact point there.
Hinna Ahmed
2020년 2월 5일
Interpolated based on what? Linear interpolation?
t(9) = mean( t( [8 10] ) );
would do that.
Sindar
2020년 2월 5일
interp1
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!