[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use leasqr.m in octave to fit data with error

From: Francesco Potorti`
Subject: Re: Use leasqr.m in octave to fit data with error
Date: Wed, 08 Apr 2009 14:08:16 +0200

>I have a data file looks like,
>data = [
> 10 1684.023253675213 142923.5184171736
> 11 1154.101457435897 79000.44034169338
> 12 793.8254991880336 44430.77751038589
> 13 548.7675124786326 24452.17758038106
>where the first column are variable values, the second one are data values
>and the third one are corresponding errors of data on second column.
>I've used function leasqr.m to fit these data to some analytic function. It
>seems to work well but I'm still wondering that I've done right things with
>inputs. My question is:
>Is it correct to set variable "wt" of the function equal to the inverse of
>error: wt = 1./data(:,3)

Yes, it is, as far as I know.

Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
(entrance 20, 1st floor, room C71)     Web:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]