Mercurial > hg > ltpda
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % Make the data files for Topic 1 of the LTPDA Training session. | |
2 % | |
3 % M Hewitson 04-02-09 | |
4 % | |
5 % $Id: mkDataFiles.m,v 1.1 2009/02/25 09:28:42 hewitson Exp $ | |
6 % | |
7 | |
8 %% Simple 2-column ASCII file | |
9 | |
10 a = ao(plist('tsfcn', 'randn(size(t))', 'fs', 10, 'nsecs', 100)) | |
11 a.export('simpleASCII.txt') | |
12 | |
13 %% Multi-column ASCII file | |
14 | |
15 a = ao(plist('tsfcn', 'sin(2*pi*1*t)', 'fs', 100, 'nsecs', 100)) | |
16 b = ao(plist('tsfcn', 'sin(2*pi*2*t)', 'fs', 100, 'nsecs', 100)) | |
17 c = ao(plist('tsfcn', 'sin(2*pi*3*t)', 'fs', 100, 'nsecs', 100)) | |
18 d = ao(plist('tsfcn', 'sin(2*pi*4*t)', 'fs', 100, 'nsecs', 100)) | |
19 e = ao(plist('tsfcn', 'sin(2*pi*5*t)', 'fs', 100, 'nsecs', 100)) | |
20 | |
21 out = [a.x a.y b.y c.y d.y e.y]; | |
22 | |
23 save multicolumnASCII.txt out -ASCII -double -tabs | |
24 | |
25 | |
26 | |
27 % END |