Date: Feb 23, 2013 9:01 PM
Subject: Re: Polyfit data
On 2/23/2013 1:42 PM, Ryan Pelky wrote:
> I have a set of data which is 19 rows by 2 columns. I'm trying to run a
> for loop to plot polyfit lines of different orders (1:7) here is what I
> came up with.
> %polyfit problem
A seventh order polynomial is likely to be highly noisy for real data
but above may be only for tutorial purposes...
They're aren't enough coefficients for a fixed evaluation as above and
you'll have wiped out the coef() array w/ a new order the second and
subsequent times thru, anyway...