Mercurial > hg > ltpda
comparison m-toolbox/html_help/help/ug/sigproc_timedomainfit_content.html @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 <p> | |
2 <a href="m/sigproc/time_domain/ltpda_timedomainfit.html">ltpda_timedomainfit.m</a> uses the MATLAB function <tt>lscov.m</tt> to fit a set of time-series AOs to a target time-series AO. It gives back a set of fitting coefficients. | |
3 </p> | |
4 <p> | |
5 One can now subtract the fitted time series from the original one - the target- and produce a new time series by calling | |
6 <a href="m/math/ltpda_lincom.html">ltpda_lincom.m</a> with the calculated coefficients. This function does a linear combination of the inputted coefficients and analysis objects and subtracts the result from the target analysis object, which has to be the first input parameter. | |
7 </p> | |
8 <h2><a name="example">An example:</a></h2> | |
9 <div class="fragment"><pre> | |
10 coeffsAO = ltpda_timedomainfit(target, ts1, ts2, ts3, ts4); | |
11 | |
12 %% Make linear combination | |
13 | |
14 x12ns = ltpda_lincom(target, ts1, ts2, ts3, ts4, coeffsAO); | |
15 </pre></div> | |
16 | |
17 <p> | |
18 <tt>x12ns</tt> represents the noise subtracted target analysis object. With noise here the fitted time series is meant. That is the linear combination of the coefficients <tt>coeffsAO</tt> and the time series objects ts1 to ts4. | |
19 </p> | |
20 | |
21 The number of time or frequency series analysis objects is variable. </br> The first is always taken as target object. |