source: orbit/arduino/puzzlebox_orbit_A_HMRMFM/processAllLogicdata.m @ 7e55322

RawEEGRaw_EEG_PlotServoTab_Interfacepyramid
Last change on this file since 7e55322 was 7e55322, checked in by AzureViolin <zhanghaotz@…>, 10 years ago

successfully regenerated IR code, with octave program help analysing raw data

  • Property mode set to 100644
File size: 3.3 KB
Line 
1close all; clear; clc;
2processLogicdata('A_HMRMFM.csv','A_HMRMFM_INNER.txt','A_HMRMFM_OUTER.txt','A_HMRMFM_RAW_OUTER.txt');
3processLogicdata('B_HMRMFM.csv','B_HMRMFM_INNER.txt','B_HMRMFM_OUTER.txt','B_HMRMFM_RAW_OUTER.txt');
4processLogicdata('C_HMRMFM.csv','C_HMRMFM_INNER.txt','C_HMRMFM_OUTER.txt','C_HMRMFM_RAW_OUTER.txt' );
5processLogicdata('A_H1RMFM.csv','A_H1RMFM_INNER.txt','A_H1RMFM_OUTER.txt','A_H1RMFM_RAW_OUTER.txt' );
6processLogicdata('A_H2RMFM.csv','A_H2RMFM_INNER.txt','A_H2RMFM_OUTER.txt','A_H2RMFM_RAW_OUTER.txt' );
7processLogicdata('A_H3RMFM.csv','A_H3RMFM_INNER.txt','A_H3RMFM_OUTER.txt','A_H3RMFM_RAW_OUTER.txt' );
8processLogicdata('A_H4RMFM.csv','A_H4RMFM_INNER.txt','A_H4RMFM_OUTER.txt','A_H4RMFM_RAW_OUTER.txt' );
9processLogicdata('A_H5RMFM.csv','A_H5RMFM_INNER.txt','A_H5RMFM_OUTER.txt','A_H5RMFM_RAW_OUTER.txt' );
10processLogicdata('A_HML1FM.csv','A_HML1FM_INNER.txt','A_HML1FM_OUTER.txt','A_HML1FM_RAW_OUTER.txt' );
11processLogicdata('A_HML2FM.csv','A_HML2FM_INNER.txt','A_HML2FM_OUTER.txt','A_HML2FM_RAW_OUTER.txt' );
12processLogicdata('A_HMR1FM.csv','A_HMR1FM_INNER.txt','A_HMR1FM_OUTER.txt','A_HMR1FM_RAW_OUTER.txt' );
13processLogicdata('A_HMR2FM.csv','A_HMR2FM_INNER.txt','A_HMR2FM_OUTER.txt','A_HMR2FM_RAW_OUTER.txt' );
14processLogicdata('A_HMRMB1.csv','A_HMRMB1_INNER.txt','A_HMRMB1_OUTER.txt','A_HMRMB1_RAW_OUTER.txt' );
15processLogicdata('A_HMRMB2.csv','A_HMRMB2_INNER.txt','A_HMRMB2_OUTER.txt','A_HMRMB2_RAW_OUTER.txt' );
16processLogicdata('A_HMRMF1.csv','A_HMRMF1_INNER.txt','A_HMRMF1_OUTER.txt','A_HMRMF1_RAW_OUTER.txt' );
17processLogicdata('A_HMRMF2.csv','A_HMRMF2_INNER.txt','A_HMRMF2_OUTER.txt','A_HMRMF2_RAW_OUTER.txt' );
18processLogicdata('A_HMRMFM_EX.csv','A_HMRMFM_EX_INNER.txt','A_HMRMFM_EX_OUTER.txt','A_HMRMFM_EX_RAW_OUTER.txt' );
19
20%put H1~H5 inner code together
21H_inner=zeros(5,31);
22load('A_H1RMFM_INNER.txt');
23H_inner(1,:)=INNER;
24load('A_H2RMFM_INNER.txt');
25H_inner(2,:)=INNER;
26load('A_H3RMFM_INNER.txt');
27H_inner(3,:)=INNER;
28load('A_H4RMFM_INNER.txt');
29H_inner(4,:)=INNER;
30load('A_H5RMFM_INNER.txt');
31H_inner(5,:)=INNER;
32
33save H_INNER.txt H_inner;
34
35%put H1~H5 outer code together
36H_outer=zeros(5,5);
37load('A_H1RMFM_OUTER.txt');
38H_outer(1,1:length(OUTER))=OUTER;
39load('A_H2RMFM_OUTER.txt');
40H_outer(2,1:length(OUTER))=OUTER;
41load('A_H3RMFM_OUTER.txt');
42H_outer(3,1:length(OUTER))=OUTER;
43load('A_H4RMFM_OUTER.txt');
44H_outer(4,1:length(OUTER))=OUTER;
45load('A_H5RMFM_OUTER.txt');
46H_outer(5,1:length(OUTER))=OUTER;
47
48save H_OUTER.txt H_outer;
49
50%put F2 F1 FM B1 B2 inner code together
51H_inner=zeros(5,31);
52load('A_HMRMF2_INNER.txt');
53H_inner(1,:)=INNER;
54load('A_HMRMF1_INNER.txt');
55H_inner(2,:)=INNER;
56load('A_HMRMFM_INNER.txt');
57H_inner(3,:)=INNER;
58load('A_HMRMB1_INNER.txt');
59H_inner(4,:)=INNER;
60load('A_HMRMB2_INNER.txt');
61H_inner(5,:)=INNER;
62
63save FB_INNER.txt H_inner;
64
65%put L2 L1 RM R1 R2 inner code together
66H_inner=zeros(5,31);
67load('A_HML2FM_INNER.txt');
68H_inner(1,:)=INNER;
69load('A_HML1FM_INNER.txt');
70H_inner(2,:)=INNER;
71load('A_HMRMFM_INNER.txt');
72H_inner(3,:)=INNER;
73load('A_HMR1FM_INNER.txt');
74H_inner(4,:)=INNER;
75load('A_HMR2FM_INNER.txt');
76H_inner(5,:)=INNER;
77
78save LR_INNER.txt H_inner;
79
80%put A B C channel inner code together
81H_inner=zeros(3,31);
82load('A_HMRMFM_INNER.txt');
83H_inner(1,:)=INNER;
84load('B_HMRMFM_INNER.txt');
85H_inner(2,:)=INNER;
86load('C_HMRMFM_INNER.txt');
87H_inner(3,:)=INNER;
88
89save ABC_INNER.txt H_inner;
Note: See TracBrowser for help on using the repository browser.