how to extrapolate with given data? (maybe very simple)
39 views (last 30 days)
Show older comments
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..
0 Comments
Accepted Answer
Stephen23
on 6 Jun 2017
Edited: Stephen23
on 6 Jun 2017
>> interp1(x,y,[6,7],'linear','extrap')
ans =
13 14
3 Comments
riadh euldji
on 26 Jun 2021
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 ????
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!