# HG changeset patch # User dicklyon@google.com # Date 1332457606 0 # Node ID b084aed83e877ff3ca9ae5eb5e7c5ca77d24630e # Parent 52f659be9008f4b4ff8a280f3a5b76a4883d7a1b Simplify plotting mess in CARFAC_Run diff -r 52f659be9008 -r b084aed83e87 matlab/bmm/carfac/CARFAC_Run.m --- a/matlab/bmm/carfac/CARFAC_Run.m Thu Mar 22 22:37:56 2012 +0000 +++ b/matlab/bmm/carfac/CARFAC_Run.m Thu Mar 22 23:06:46 2012 +0000 @@ -117,21 +117,12 @@ if AGC_plot_fig_num figure(AGC_plot_fig_num); hold off; clf - set(gca, 'Position', [.25, .25, .5, .5]) - for ear = 1:n_ears - plot(CF.AGC_state(ear).AGC_memory(:, 1), 'k-', 'LineWidth', 1) maxes(ear) = max(CF.AGC_state(ear).AGC_memory(:)); hold on - for stage = 1:3; - plot(2^(stage-1) * (CF.AGC_state(ear).AGC_memory(:, stage) - ... - 2 * CF.AGC_state(ear).AGC_memory(:, stage+1))); - plot(2^(stage-1) * (CF.AGC_state(ear).AGC_memory(:, stage) - ... - 0 * CF.AGC_state(ear).AGC_memory(:, stage+1)), 'r--'); + for stage = 1:4; + plot(2^(stage-1) * CF.AGC_state(ear).AGC_memory(:, stage)); end - stage = 4; - plot(2^(stage-1) * CF.AGC_state(ear).AGC_memory(:, stage)); - plot(2^(stage-1) * CF.AGC_state(ear).AGC_memory(:, stage), 'r--'); end axis([0, CF.n_ch+1, 0.0, max(maxes) * 1.01 + 0.002]); drawnow