Mercurial > hg > ltpda
diff m-toolbox/test/LTPDA_training/topic1/mkDataFiles.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/test/LTPDA_training/topic1/mkDataFiles.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,27 @@ +% 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 \ No newline at end of file