% rafiki2 and rafiki3 are same
% calindol was added at tommy1_E210_VC3

tommy1_E220_VC1.startTime = [2012 04 05 14 03 34.476];
tommy1_E221_VC1.startTime = [2012 04 05 14 21 46.402];
tommy1_E222_VC1.startTime = [2012 04 05 14 48 16.729];
tommy1_E222_VC2.startTime = [2012 04 05 14 53 21.554];
tommy1_E223_VC1.startTime = [2012 04 05 15 05 50.237];
tommy1_E224_VC1.startTime = [2012 04 05 15 11 44.102];
tommy1_E224_VC2.startTime = [2012 04 05 15 15 08.002];
tommy1_E225_VC1.startTime = [2012 04 05 15 25 24.961];
tommy1_E225_VC2.startTime = [2012 04 05 15 30 59.898]; %cyclothiazide added
tommy1_E225_VC3.startTime = [2012 04 05 15 35 11.022];
tommy1_E226_VC1.startTime = [2012 04 05 15 45 19.230];
tommy1_E226_VC2.startTime = [2012 04 05 15 57 39.836];
tommy1_E227_VC1.startTime = [2012 04 05 16 08 12.089];
tommy1_E228_VC1.startTime = [2012 04 05 16 19 57.508];
tommy1_E228_VC2.startTime = [2012 04 05 16 32 28.174];
tommy1_E229_VC1.startTime = [2012 04 05 17 47 22.648];
tommy1_E230_VC1.startTime = [2012 04 05 17 58 59.108];
tommy1_E230_VC2.startTime = [2012 04 05 18 00 21.815];
tommy1_E230_VC3.startTime = [2012 04 05 18 04 20.127];
tommy1_E230_VC4.startTime = [2012 04 05 18 05 15.940];
tommy1_E230_VC5.startTime = [2012 04 05 18 06 32.039];
tommy1_E231_VC1.startTime = [2012 04 05 19 46 49.384];
tommy1_E232_VC1.startTime = [2012 04 05 19 57 49.565];
tommy1_E233_VC1.startTime = [2012 04 05 21 16 33.233];
tommy1_E234_VC1.startTime = [2012 04 06 01 32 38.402];
tommy1_E234_VC2.startTime = [2012 04 06 01 36 50.336];
tommy1_E234_VC3.startTime = [2012 04 06 01 38 33.424];
tommy1_E234_VC4.startTime = [2012 04 06 01 42 15.674];
tommy1_E235_VC1.startTime = [2012 04 06 01 50 22.080];
tommy1_E236_VC1.startTime = [2012 04 06 02 02 30.382];
tommy1_E236_VC2.startTime = [2012 04 06 02 05 33.112];

tommy1_E220_VC1.timeSinceCTZ = etime(tommy1_E220_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E221_VC1.timeSinceCTZ = etime(tommy1_E221_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E222_VC1.timeSinceCTZ = etime(tommy1_E222_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E222_VC2.timeSinceCTZ = etime(tommy1_E222_VC2.startTime,tommy1_E225_VC2.startTime);
tommy1_E223_VC1.timeSinceCTZ = etime(tommy1_E223_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E224_VC1.timeSinceCTZ = etime(tommy1_E224_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E224_VC2.timeSinceCTZ = etime(tommy1_E224_VC2.startTime,tommy1_E225_VC2.startTime);
tommy1_E225_VC1.timeSinceCTZ = etime(tommy1_E225_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E225_VC2.timeSinceCTZ = etime(tommy1_E225_VC2.startTime,tommy1_E225_VC2.startTime);
tommy1_E225_VC3.timeSinceCTZ = etime(tommy1_E225_VC3.startTime,tommy1_E225_VC2.startTime);
tommy1_E226_VC1.timeSinceCTZ = etime(tommy1_E226_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E226_VC2.timeSinceCTZ = etime(tommy1_E226_VC2.startTime,tommy1_E225_VC2.startTime);
tommy1_E227_VC1.timeSinceCTZ = etime(tommy1_E227_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E228_VC1.timeSinceCTZ = etime(tommy1_E228_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E228_VC2.timeSinceCTZ = etime(tommy1_E228_VC2.startTime,tommy1_E225_VC2.startTime);
tommy1_E229_VC1.timeSinceCTZ = etime(tommy1_E229_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E230_VC1.timeSinceCTZ = etime(tommy1_E230_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E230_VC2.timeSinceCTZ = etime(tommy1_E230_VC2.startTime,tommy1_E225_VC2.startTime);
tommy1_E230_VC3.timeSinceCTZ = etime(tommy1_E230_VC3.startTime,tommy1_E225_VC2.startTime);
tommy1_E230_VC4.timeSinceCTZ = etime(tommy1_E230_VC4.startTime,tommy1_E225_VC2.startTime);
tommy1_E230_VC5.timeSinceCTZ = etime(tommy1_E230_VC5.startTime,tommy1_E225_VC2.startTime);
tommy1_E231_VC1.timeSinceCTZ = etime(tommy1_E231_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E232_VC1.timeSinceCTZ = etime(tommy1_E232_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E233_VC1.timeSinceCTZ = etime(tommy1_E233_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E234_VC1.timeSinceCTZ = etime(tommy1_E234_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E234_VC2.timeSinceCTZ = etime(tommy1_E234_VC2.startTime,tommy1_E225_VC2.startTime);
tommy1_E234_VC3.timeSinceCTZ = etime(tommy1_E234_VC3.startTime,tommy1_E225_VC2.startTime);
tommy1_E234_VC4.timeSinceCTZ = etime(tommy1_E234_VC4.startTime,tommy1_E225_VC2.startTime);
tommy1_E235_VC1.timeSinceCTZ = etime(tommy1_E235_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E236_VC1.timeSinceCTZ = etime(tommy1_E236_VC1.startTime,tommy1_E225_VC2.startTime);
tommy1_E236_VC2.timeSinceCTZ = etime(tommy1_E236_VC2.startTime,tommy1_E225_VC2.startTime);

tommy1_cell05_part01 = sortrows(tommy1_E0x2D220_VC0x2D1,2);
tommy1_cell05_part01(:,2) = tommy1_cell05_part01(:,2)/1000 + tommy1_E220_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell05_part01(:,19) = [1./diff(tommy1_cell05_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell05 = tommy1_cell05_part01;

tommy1_cell06_part01 = sortrows(tommy1_E0x2D221_VC0x2D1,2);
tommy1_cell06_part01(:,2) = tommy1_cell06_part01(:,2)/1000 + tommy1_E221_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell06_part01(:,19) = [1./diff(tommy1_cell06_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell06 = tommy1_cell06_part01;

tommy1_cell07_part01 = sortrows(tommy1_E0x2D222_VC0x2D1,2);
tommy1_cell07_part01(:,2) = tommy1_cell07_part01(:,2)/1000 + tommy1_E222_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell07_part01(:,19) = [1./diff(tommy1_cell07_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell07_part02 = sortrows(tommy1_E0x2D222_VC0x2D2,2);
tommy1_cell07_part02(:,2) = tommy1_cell07_part02(:,2)/1000 + tommy1_E222_VC2.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell07_part02(:,19) = [1./diff(tommy1_cell07_part02(:,2)); NaN]; %frequency in Hz
tommy1_cell07 = [tommy1_cell07_part01; tommy1_cell07_part02];

tommy1_cell09_part01 = sortrows(tommy1_E0x2D224_VC0x2D1,2);
tommy1_cell09_part01(:,2) = tommy1_cell09_part01(:,2)/1000 + tommy1_E224_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell09_part01(:,19) = [1./diff(tommy1_cell09_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell09_part02 = sortrows(tommy1_E0x2D224_VC0x2D2,2);
tommy1_cell09_part02(:,2) = tommy1_cell09_part02(:,2)/1000 + tommy1_E224_VC2.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell09_part02(:,19) = [1./diff(tommy1_cell09_part02(:,2)); NaN]; %frequency in Hz
tommy1_cell09 = [tommy1_cell09_part01; tommy1_cell09_part02];

tommy1_cell10_part01 = sortrows(tommy1_E0x2D225_VC0x2D1,2);
tommy1_cell10_part01(:,2) = tommy1_cell10_part01(:,2)/1000 + tommy1_E225_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell10_part01(:,19) = [1./diff(tommy1_cell10_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell10_part02 = sortrows(tommy1_E0x2D225_VC0x2D2,2);
tommy1_cell10_part02(:,2) = tommy1_cell10_part02(:,2)/1000 + tommy1_E225_VC2.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell10_part02(:,19) = [1./diff(tommy1_cell10_part02(:,2)); NaN]; %frequency in Hz
tommy1_cell10_part03 = sortrows(tommy1_E0x2D225_VC0x2D3,2);
tommy1_cell10_part03(:,2) = tommy1_cell10_part03(:,2)/1000 + tommy1_E225_VC3.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell10_part03(:,19) = [1./diff(tommy1_cell10_part03(:,2)); NaN]; %frequency in Hz
tommy1_cell10_pre = tommy1_cell10_part01;
tommy1_cell10_post = [tommy1_cell10_part02; tommy1_cell10_part03];

tommy1_cell11_part01 = sortrows(tommy1_E0x2D226_VC0x2D1,2);
tommy1_cell11_part01(:,2) = tommy1_cell11_part01(:,2)/1000 + tommy1_E226_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell11_part01(:,19) = [1./diff(tommy1_cell11_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell11_part02 = sortrows(tommy1_E0x2D226_VC0x2D2,2);
tommy1_cell11_part02(:,2) = tommy1_cell11_part02(:,2)/1000 + tommy1_E226_VC2.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell11_part02(:,19) = [1./diff(tommy1_cell11_part02(:,2)); NaN]; %frequency in Hz
tommy1_cell11 = [tommy1_cell11_part01; tommy1_cell11_part02];

tommy1_cell12_part01 = sortrows(tommy1_E0x2D227_VC0x2D1,2);
tommy1_cell12_part01(:,2) = tommy1_cell12_part01(:,2)/1000 + tommy1_E227_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell12_part01(:,19) = [1./diff(tommy1_cell12_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell12 = tommy1_cell12_part01;

tommy1_cell13_part01 = sortrows(tommy1_E0x2D228_VC0x2D1,2);
tommy1_cell13_part01(:,2) = tommy1_cell13_part01(:,2)/1000 + tommy1_E228_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell13_part01(:,19) = [1./diff(tommy1_cell13_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell13_part02 = sortrows(tommy1_E0x2D228_VC0x2D2,2);
tommy1_cell13_part02(:,2) = tommy1_cell13_part02(:,2)/1000 + tommy1_E228_VC2.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell13_part02(:,19) = [1./diff(tommy1_cell13_part02(:,2)); NaN]; %frequency in Hz
tommy1_cell13 = [tommy1_cell13_part01; tommy1_cell13_part02];

tommy1_cell14_part01 = sortrows(tommy1_E0x2D229_VC0x2D1,2);
tommy1_cell14_part01(:,2) = tommy1_cell14_part01(:,2)/1000 + tommy1_E229_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell14_part01(:,19) = [1./diff(tommy1_cell14_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell14 = tommy1_cell14_part01;

tommy1_cell15_part01 = sortrows(tommy1_E0x2D230_VC0x2D1,2);
tommy1_cell15_part01(:,2) = tommy1_cell15_part01(:,2)/1000 + tommy1_E230_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell15_part01(:,19) = [1./diff(tommy1_cell15_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell15_part02 = sortrows(tommy1_E0x2D230_VC0x2D2,2);
tommy1_cell15_part02(:,2) = tommy1_cell15_part02(:,2)/1000 + tommy1_E230_VC2.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell15_part02(:,19) = [1./diff(tommy1_cell15_part02(:,2)); NaN]; %frequency in Hz
tommy1_cell15 = [tommy1_cell15_part01; tommy1_cell15_part02];

tommy1_cell16_part01 = sortrows(tommy1_E0x2D231_VC0x2D1,2);
tommy1_cell16_part01(:,2) = tommy1_cell16_part01(:,2)/1000 + tommy1_E231_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell16_part01(:,19) = [1./diff(tommy1_cell16_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell16 = tommy1_cell16_part01;

tommy1_cell17_part01 = sortrows(tommy1_E0x2D232_VC0x2D1,2);
tommy1_cell17_part01(:,2) = tommy1_cell17_part01(:,2)/1000 + tommy1_E232_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell17_part01(:,19) = [1./diff(tommy1_cell17_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell17 = tommy1_cell17_part01;

tommy1_cell18_part01 = sortrows(tommy1_E0x2D233_VC0x2D1,2);
tommy1_cell18_part01(:,2) = tommy1_cell18_part01(:,2)/1000 + tommy1_E233_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell18_part01(:,19) = [1./diff(tommy1_cell18_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell18 = tommy1_cell18_part01;

tommy1_cell19_part01 = sortrows(tommy1_E0x2D234_VC0x2D1,2);
tommy1_cell19_part01(:,2) = tommy1_cell19_part01(:,2)/1000 + tommy1_E234_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell19_part01(:,19) = [1./diff(tommy1_cell19_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell19_part02 = sortrows(tommy1_E0x2D234_VC0x2D2,2);
tommy1_cell19_part02(:,2) = tommy1_cell19_part02(:,2)/1000 + tommy1_E234_VC2.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell19_part02(:,19) = [1./diff(tommy1_cell19_part02(:,2)); NaN]; %frequency in Hz
tommy1_cell19_part03 = sortrows(tommy1_E0x2D234_VC0x2D3,2);
tommy1_cell19_part03(:,2) = tommy1_cell19_part03(:,2)/1000 + tommy1_E234_VC3.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell19_part03(:,19) = [1./diff(tommy1_cell19_part03(:,2)); NaN]; %frequency in Hz
tommy1_cell19 = [tommy1_cell19_part01; tommy1_cell19_part02; tommy1_cell19_part03];

tommy1_cell20_part01 = sortrows(tommy1_E0x2D235_VC0x2D1,2);
tommy1_cell20_part01(:,2) = tommy1_cell20_part01(:,2)/1000 + tommy1_E235_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell20_part01(:,19) = [1./diff(tommy1_cell20_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell20 = tommy1_cell20_part01;

tommy1_cell21_part01 = sortrows(tommy1_E0x2D236_VC0x2D1,2);
tommy1_cell21_part01(:,2) = tommy1_cell21_part01(:,2)/1000 + tommy1_E236_VC1.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell21_part01(:,19) = [1./diff(tommy1_cell21_part01(:,2)); NaN]; %frequency in Hz
tommy1_cell21_part02 = sortrows(tommy1_E0x2D236_VC0x2D2,2);
tommy1_cell21_part02(:,2) = tommy1_cell21_part02(:,2)/1000 + tommy1_E236_VC2.timeSinceCTZ; %time relative to cyclothiazide addition in seconds 
tommy1_cell21_part02(:,19) = [1./diff(tommy1_cell21_part02(:,2)); NaN]; %frequency in Hz
tommy1_cell21 = [tommy1_cell21_part01; tommy1_cell21_part02];



clear *_part*