matlab
Polyfitting and Vector Reversal in Matlab
Posted November 17th, 2009 by Adam
I’m currently taking a course in data mining and matrix methods, and we use matlabs for our lab assignments. We have probably spent half of our time figuring out how to do certain things in matlab, and the other half actually learning what we’re supposed to learn.
One problem we had was that we had a vector of coefficients for a polynomial, and we wanted to plot a graph of it, this gave us a few headaches.
First of all, how do you plot a polynomial? polyfit
does that, as we figured out, and then one can use
plot to plot the points given.