help-octave
[Top][All Lists]
Advanced

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

Re: octave


From: David Bateman
Subject: Re: octave
Date: Fri, 25 Apr 2003 15:02:45 +0200
User-agent: Mutt/1.3.28i

> > 2. how to extract errors from fitting by polynomial

Example

x0 = [0:0.01:1]*pi;
y0 = sin(x0);
n = 5;
[p, y] = polyfit(x0,y0,n);   %% p is the coefs of an n-th order polynomial
err_rms = sqrt(sumsq(y-y0)/length(y))


D.

-- 
David Bateman                                address@hidden
Motorola CRM                                 +33 1 69 35 25 00 (Ph)
Espace Technologique, Commune de St Aubin    +33 1 69 35 25 01 (Fax)
91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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