필터 지우기
필터 지우기

how to extrapolate with given data? (maybe very simple)

조회 수: 308 (최근 30일)
JaeSung Choi
JaeSung Choi 2017년 6월 6일
댓글: Stephen23 2021년 6월 26일
I want to guess outside the given data! For example data x = 1:5 y = [7 9 10 11 12] are given. And I want to guess the values at x=6,7. (For any method) How can I do it? Help me..

채택된 답변

Stephen23
Stephen23 2017년 6월 6일
편집: Stephen23 2017년 6월 6일
>> interp1(x,y,[6,7],'linear','extrap')
ans =
13 14
And remember that extrapolated values are always to be taken with a pinch of salt.
  댓글 수: 3
riadh euldji
riadh euldji 2021년 6월 26일
hello sir how can do extrapolation
let's take this exemple to extrapolate beyond the range x =1:5 like 6 to 8
and our new rang will be x1=1:8 is that possible ????
Stephen23
Stephen23 2021년 6월 26일
@riadh euldji: did you try the code given in my answer ????

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 보간에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!