Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: fiting curve question....
Posted:
Aug 13, 1996 1:45 PM


Assuming your data is stored in vectors x and y:
x=x(:); y=y(:); g = [x.^2, ones(size(x))]; p = g\y; a = p(1) c = p(2)
+==Wladimir Shukowsky=====wladimir@iag.usp.br==+  Instituto Astronomico e Geofisico  USP   Sao Paulo SP / Brazil  +==Tel: +55118184776====Fax: +55118185034==+
On Tue, 13 Aug 1996, Euh ? wrote:
>how can i fit a curve with the eq. "ax^2+c" in matlab ? > >



