Prev: Probability
Next: For Loop fo an m-by-1 matrix
From: pedro garcia on 7 May 2010 15:05 i need to create a function using [m,b]=bestfit_PG(x,y) this function finds the best fitline for a set of data x and y and returns the slope m and the y-intercept b of the line. i was told to usse regression line the .formula for m and yintercept, but i am havind trouble translating those formulas to matlab thanks
From: us on 7 May 2010 15:21 "pedro garcia" <www.pedros(a)hotmail.com> wrote in message <hs1o9i$f3$1(a)fred.mathworks.com>... > i need to create a function using [m,b]=bestfit_PG(x,y) this function > finds the best fitline for a set of data x and y and returns the slope m and the > y-intercept b of the line. > i was told to usse regression line the .formula for m and yintercept, but i am havind trouble translating those formulas to matlab > > > thanks 1) do NOT repeat OPs... 2) here, the same applies... what have YOU done so far to solve YOUR particular problem... us
|
Pages: 1 Prev: Probability Next: For Loop fo an m-by-1 matrix |