view m-toolbox/test/test_ao_offset.m @ 47:dd93c9ba6624 database-connection-manager

Fix Java dialog
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Tue, 06 Dec 2011 19:07:27 +0100
parents f0afece42f48
children
line wrap: on
line source

% A simple test script to test the ao/offset method
% 
% M Hewitson
% 
% $Id: test_ao_offset.m,v 1.1 2008/12/03 08:15:34 hewitson Exp $
% 

mc

%% Make AOs

ts = ao(plist('tsfcn', 't.^2', 'fs', 10, 'nsecs', 1))
xy = ao(plist('xyfcn', 'sqrt(x)', 'x', 1:10)) 
fs = ao(plist('fsfcn', '1./f', 'f', logspace(-4,0,1000)))
ca = ao(1:10)

%% Scale all of them

sts1 = ts.offset(plist('offset', 3))
sts2 = ts.offset(plist('offset', 3))
sts3 = ts.offset(2)

tss = offset([sts1 sts2 sts3], plist('offset', 4))