view m-toolbox/test/MDC1/test_ltpda_mdc1_x2acc.m @ 29:54f14716c721 database-connection-manager

Update Java code
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 the time-domain conversion to acceleration
% 
% M Hewitson 11-04-08
% 
% $Id: test_ltpda_mdc1_x2acc.m,v 1.1 2008/04/14 15:39:44 hewitson Exp $
% 

% Make a white-noise AO
fs    = 10;
nsecs = 100000;

a = ao(plist('tsfcn', 'randn(size(t))', 'fs', fs, 'nsecs', nsecs));

% Apply filter
b = ltpda_mdc1_x2acc(a, plist('Omega2', -1.3e-6));

% Split off transients
a = split(a, plist('split_type', 'times', 'times', [100 nsecs-100]));

% Make spectrum
bxx = ltpda_lpsd(b);

iplot(bxx);

% Make TF
tf = ltpda_tfe(a,b);

iplot(tf(1,2))


% END