comparison m-toolbox/test/tdfit/convert_data.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 % Convert the large text files into individual AOs and store as XML files.
2 %
3 % M Hewitson 18-03-07
4 %
5 %
6
7 clear;
8
9 fs = 32.46;
10
11 %% Load data
12
13 % unfiltered Data
14 data=load('./Data/2007-02-26_18-37.txt');
15 x1 = data(:,1);
16 nsecs = length(x1)/fs;
17 t = [linspace(0, nsecs-1/fs, nsecs*fs)].';
18 out = [t x1];
19 save 'x1.txt' out -ASCII -DOUBLE -TABS
20 disp('done x1')
21
22 x1 = data(:,2);
23 nsecs = length(x1)/fs;
24 t = [linspace(0, nsecs-1/fs, nsecs*fs)].';
25 out = [t x1];
26 save 'x12.txt' out -ASCII -DOUBLE -TABS
27 disp('done x12')
28
29 x1 = data(:,3);
30 nsecs = length(x1)/fs;
31 t = [linspace(0, nsecs-1/fs, nsecs*fs)].';
32 out = [t x1];
33 save 'phi1.txt' out -ASCII -DOUBLE -TABS
34 disp('done phi1')
35
36 x1 = data(:,4);
37 nsecs = length(x1)/fs;
38 t = [linspace(0, nsecs-1/fs, nsecs*fs)].';
39 out = [t x1];
40 save 'eta1.txt' out -ASCII -DOUBLE -TABS
41 disp('done eta1')
42
43 x1 = data(:,5);
44 nsecs = length(x1)/fs;
45 t = [linspace(0, nsecs-1/fs, nsecs*fs)].';
46 out = [t x1];
47 save 'phi12.txt' out -ASCII -DOUBLE -TABS
48 disp('done phi12')
49
50 x1 = data(:,6);
51 nsecs = length(x1)/fs;
52 t = [linspace(0, nsecs-1/fs, nsecs*fs)].';
53 out = [t x1];
54 save 'eta12.txt' out -ASCII -DOUBLE -TABS
55 disp('done eta12')
56
57 disp('*** Done.')
58 clear data;