% Make the data files for Topic 1 of the LTPDA Training session.
% 
% M Hewitson 04-02-09
% 
% $Id: mkDataFiles.m,v 1.1 2009/02/25 09:28:42 hewitson Exp $
% 

%% Simple 2-column ASCII file

a = ao(plist('tsfcn', 'randn(size(t))', 'fs', 10, 'nsecs', 100))
a.export('simpleASCII.txt')

%% Multi-column ASCII file

a = ao(plist('tsfcn', 'sin(2*pi*1*t)', 'fs', 100, 'nsecs', 100))
b = ao(plist('tsfcn', 'sin(2*pi*2*t)', 'fs', 100, 'nsecs', 100))
c = ao(plist('tsfcn', 'sin(2*pi*3*t)', 'fs', 100, 'nsecs', 100))
d = ao(plist('tsfcn', 'sin(2*pi*4*t)', 'fs', 100, 'nsecs', 100))
e = ao(plist('tsfcn', 'sin(2*pi*5*t)', 'fs', 100, 'nsecs', 100))

out = [a.x a.y b.y c.y d.y e.y];

save multicolumnASCII.txt out -ASCII -double -tabs



% END