MATLAB Answers


How to do extrapolation

Asked by Nasir Qazi on 28 Feb 2012

how to do a extrapolation in a graph in matlab ?


Log in to comment.


2 Answers

Answer by Sean de Wolski
on 28 Feb 2012


Show 1 older comment

It's a warning.

And you didn't give us enough information to help anyway. Is it a polynomial, one dimensional etc?

I mean polyfit/polyval will allow you to extrapolate, but is that what you want? I have no idea.

It is my absolutely favorite quote about mathematics, and one that does not seem to be too well known.

Log in to comment.

Answer by Walter Roberson
on 28 Feb 2012

I thought for a few seconds. “I’ll give you an example. Here’s a sequence, and I want you to tell me the next number.”
“I’ll do my best.”
“1, 1, 2, 3, 5, 8, 13, 21, 34, 55,” I said.
He looked puzzled. “Don’t be silly. I just asked you that one. It’s the Fibonacci sequence.”
“Is it? Then what’s next?”
“89,” Adam replied.
“Wrong. It’s 91.”
“But it looks just like the—”
“You’re leaping to conclusions, Adam, based on previous prejudices. Most injudicious. Your sequence was the Fibonacci sequence, but the nth term in my sequence is the least integer not less than Öe n–2, where Öe = 2.71828, the base of natural logarithms. I want the 11th term, which is the least integer not less than Öe9, or 90.017. That’s 91.”


Log in to comment.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today