function plot_spALL( num_std ) if (~exist('num_std')) num_std = 5; end load( sprintf( 'sp%d_data_ext', num_std ) ); fig = 664; figure( fig ); clf; %min_z = min(min(z_data)); %max_z = max(max(z_data)); %axis( [sp_t(1) sp_t(end) min_z max_z] ); axis( [sp_t(1) sp_t(end) -.015 .015] ); AX = axis; for channel = 1:64 z = z_data(:,channel); sp = sp_data{channel}; subplot(8,8,channel); plot( sp_t, z ); hold on; plot( [sp_t(1) sp_t(end)], [threshold(channel) threshold(channel)], 'g', 'linewidth', 2 ); plot( [sp_t(1) sp_t(end)], [-threshold(channel) -threshold(channel)], 'g', 'linewidth', 2 ); plot( sp, zeros(length(sp),1), 'rx' ); if ( channel <= 56 ) set( gca, 'XTickLabel', '' ); % don't display Xticks end axis( AX ); tx = text( 0.65*AX(1)+0.35*AX(2), 0.05*AX(3)+1.3*AX(4), ... sprintf( 'Ch %d', channel ) ); set( tx, 'fontsize', 10, 'fontweight', 'bold' ); disp( sprintf( 'Channel %d done.', channel ) ); % drawnow; % pause; end