How to extrapolate given data to find more number of points?
1 次查看(过去 30 天)
显示 更早的评论
I have a set of data for example
- X Y
0 45
2 38
6 34
I want to find values of y for x=8,10, 12 etc. Is there any way to do it in MATLAB
0 个评论
回答(1 个)
John D'Errico
2022-8-6
Your words ask how to do interpolation. However, then you ask about extrapolation. The two problems are VERY different.
To quote Mark Twain (Life on the Mississippi) on the dangers of extrapolation...
"In the space of one hundred and seventy-six years the Lower Mississippi has shortened itself two hundred and forty-two miles. That is an average of a trifle over one mile and a third per year. Therefore, any calm person, who is not blind or idiotic, can see that in the Old Oolitic Silurian Period,' just a million years ago next November, the Lower Mississippi River was upwards of one million three hundred thousand miles long, and stuck out over the Gulf of Mexico like a fishing-rod. And by the same token any person can see that seven hundred and forty-two years from now the Lower Mississippi will be only a mile and three-quarters long, and Cairo and New Orleans will have joined their streets together, and be plodding comfortably along under a single mayor and a mutual board of aldermen. There is something fascinating about science. One gets such wholesale returns of conjecture out of such a trifling investment of fact."
You can use interp1 to perform interpolation. However, extrapolation is a dangerous thing. You are best off to choose an intelligent and APPROPRIATE model, fit it to your data, then use it for extrapolation.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Data Preparation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!