clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b.spk');
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_22DIV_01.mat','channel','threshold','time','waveform','meta','-v7.3');


%%

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b.spk',[3600*0 3600*6]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_21DIV_02.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b.spk',[3600*6 3600*12]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_21DIV_03.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b.spk',[3600*12 3600*18]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_21DIV_04.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b.spk',[3600*18 3600*24]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_21DIV_05.mat','channel','threshold','time','waveform','meta','-v7.3');



%%
clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b2.spk',[3600*0 3600*6]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_22DIV_01.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b2.spk',[3600*6 3600*12]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_22DIV_02.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b2.spk',[3600*12 3600*18]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_22DIV_03.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b2.spk',[3600*18 3600*24]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_22DIV_04.mat','channel','threshold','time','waveform','meta','-v7.3');




%%
clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b3.spk',[3600*0 3600*6]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_23DIV_01.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b3.spk',[3600*6 3600*12]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_23DIV_02.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b3.spk',[3600*12 3600*18]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_23DIV_03.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b3.spk',[3600*18 3600*24]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_23DIV_04.mat','channel','threshold','time','waveform','meta','-v7.3');



clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b4.spk');
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_24DIV_01.mat','channel','threshold','time','waveform','meta','-v7.3')



clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b5.spk',[3600*0 3600*6]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_24DIV_02.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b5.spk',[3600*6 3600*12]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_24DIV_03.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b5.spk',[3600*12 3600*18]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_24DIV_04.mat','channel','threshold','time','waveform','meta','-v7.3');

clear; pack; dat = loadspk('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\original\20111110_haruki17898-b5.spk',[3600*18 3600*24]);
channel = dat.channel; threshold = dat.threshold; waveform = dat.waveform; time = dat.time; meta = dat.meta; clear dat;
save('C:\Users\USER\Documents\mingfaifong\haruki17898b\spkfiles\haruki17898_24DIV_05.mat','channel','threshold','time','waveform','meta','-v7.3');





