Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Trend Line / Curve
Date: Mon, 9 Nov 2009 10:06:01 +0000 (UTC)
Organization: Fluide Automatiques et Syst&#232;mes Thermiques
Lines: 18
Message-ID: <hd8pi9$q78$1@fred.mathworks.com>
References: <hcv04u$9sq$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257761161 26856 172.30.248.37 (9 Nov 2009 10:06:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Nov 2009 10:06:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 143724
Xref: news.mathworks.com comp.soft-sys.matlab:583502


Hi
You can use the Ezyfit toolbox for this purpose:
http://www.mathworks.com/matlabcentral/fileexchange/10176-ezyfit-2-30
You can easily fit log or exp laws, and it gives you the R-square value.
Have a look to the example file:
http://www.mathworks.com/matlabcentral/fx_files/10176/3/content/ezyfit/demo/html/efdemo.html
Frederic



"Samoline1 Linke" <maganatewoman@yahoo.com> wrote in message <hcv04u$9sq$1@fred.mathworks.com>...
> Is it possible to find the trend curve ? 
> 
> E.g. when we do   plot (x,y)
> 
> then in basic fitting we can do the fitting (trend line) for Linear and Polynomial (curbic.. etc) but I could not find any GUI where I could fit an exponential or logarithmic curve.
> 
> In MS Excel, I see such an option and in Excel it gives the value of R-square as well.