Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!t54g2000hsg.googlegroups.com!not-for-mail
From: Greg Heath <heath@alumni.brown.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: solution/fit for f(x)=A*cos(B*x)
Date: Wed, 9 Jul 2008 21:24:54 -0700 (PDT)
Organization: http://groups.google.com
Lines: 17
Message-ID: <7ec1ed45-f7b0-474c-9f71-61462a5096df@t54g2000hsg.googlegroups.com>
References: <24427446.1215576592399.JavaMail.jakarta@nitrogen.mathforum.org>
NNTP-Posting-Host: 69.141.173.117
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1215663894 2088 127.0.0.1 (10 Jul 2008 04:24:54 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 10 Jul 2008 04:24:54 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: t54g2000hsg.googlegroups.com; posting-host=69.141.173.117; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 
Xref: news.mathworks.com comp.soft-sys.matlab:478535



On Jul 9, 12:09=A0am, Leaf Man <imille...@live.com> wrote:
> Hello,
>
> I'm trying to solve f(x)=3DA*cos(B*x) to get estimates of the parameters =
A and B where I have a vector for f(x),x. I'm also looking to give a confid=
ence interval for f(x)=3DAcos(Bx) given f(x),x and report errors for A and =
B. Any help would be much appreciated!
>
> Thanks.

F =3D fft(f);

etc

Hope this helps.

Greg