Mercurial > hg > ltpda
view m-toolbox/test/test_ltpda_tfe.m @ 23:a71a40911c27 database-connection-manager
Update check for repository connection parameter in constructors
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
% Test ltpda_tfe functionality. % % M Hewitson 13-02-07 % % $Id: test_ltpda_tfe.m,v 1.22 2009/04/07 17:45:22 ingo Exp $ % function test_ltpda_tfe() % Make test AOs nsecs = 10; fs = 1000; pl = plist('nsecs', nsecs, 'fs', fs, 'tsfcn', 'sin(2*pi*7.433*t) + randn(size(t))'); a1 = ao(pl); % Filter one time-series % Make a filter f1 = miir(plist('type', 'highpass', 'fc', 20, 'fs', fs)); % Filter the input data [a2, f1] = filter(a1,plist('filter', f1)); % Make TF from a1 to a2 a4 = tfe(a1,a2, plist('Nfft', 1000)); % Plot results and history b = a4; iplot(b); plot(b.hist); % Reproduce from history a_out = rebuild(b); iplot(a_out) plot(a_out.hist) end