%average waveforms and plots for each signal
%change numbers of signals accordingly

figure

av_1a=mean(basal_1a'); subplot (9,2,1); plot (av_1a, ('r')); axis ([0 60 -40 20]);
av_2a=mean(basal_2a'); subplot (9,2,3); plot (av_2a, ('r')); axis ([0 60 -40 20]);
av_2b=mean(basal_2b'); subplot (9,2,5); plot (av_2b, ('r')); axis ([0 60 -40 20]);
av_3a=mean(basal_3a'); subplot (9,2,7); plot (av_3a, ('r')); axis ([0 60 -40 20]);
av_4a=mean(basal_4a'); subplot (9,2,9); plot (av_4a, ('r')); axis ([0 60 -40 20]);
av_5a=mean(basal_5a'); subplot (9,2,11); plot (av_5a, ('r')); axis ([0 60 -40 20]);
av_6a=mean(basal_6a'); subplot (9,2,13); plot (av_6a, ('r')); axis ([0 60 -40 20]);
av_7a=mean(basal_7a'); subplot (9,2,15); plot (av_7a, ('r')); axis ([0 60 -40 20]);
av_8a=mean(basal_8a'); subplot (9,2,17); plot (av_8a, ('r')); axis ([0 60 -40 20]);
av_9a=mean(basal_9a'); subplot (9,2,2); plot (av_9a); axis ([0 60 -40 20]);
av_10a=mean(basal_10a'); subplot (9,2,4); plot (av_10a); axis ([0 60 -40 20]);
av_11a=mean(basal_11a'); subplot (9,2,6); plot (av_11a); axis ([0 60 -40 20]);
av_12a=mean(basal_12a'); subplot (9,2,8); plot (av_12a); axis ([0 60 -40 20]);
av_13a=mean(basal_13a'); subplot (9,2,10); plot (av_13a); axis ([0 60 -40 20]);
av_14a=mean(basal_14a'); subplot (9,2,12); plot (av_14a); axis ([0 60 -40 20]);
av_15a=mean(basal_15a'); subplot (9,2,14); plot (av_15a); axis ([0 60 -40 20]);
av_16a=mean(basal_16a'); subplot (9,2,16); plot (av_16a); axis ([0 60 -40 20]);

