On Mon, Apr 13, 2009 at 5:59 PM, Mathew Yeates wrote:
> Hi,
> I understand how to fit the points (x1,y1) (x2,y2),(x3,y3) with a line
> using polyfit. But, what if I want to perform this task on every row of
> an array?
> For instance
>
> [[x1,x2,x3],
> [s1,s2,s3]]
>
> [[y1,y2,y3,],
> [r1,r2,r3]
Hi,
I understand how to fit the points (x1,y1) (x2,y2),(x3,y3) with a line
using polyfit. But, what if I want to perform this task on every row of
an array?
For instance
[[x1,x2,x3],
[s1,s2,s3]]
[[y1,y2,y3,],
[r1,r2,r3]]
and I want the results to be the coefficients [a,b,c] and [d,e,f] wh