Mercurial > hg > aimc
changeset 693:3d749a008b87
Plotting bug fix in CARFAC_Run.
author | dicklyon@google.com |
---|---|
date | Tue, 18 Jun 2013 18:07:02 +0000 |
parents | 2d432ff51f64 |
children | a43892e7e5ad |
files | trunk/matlab/bmm/carfac/CARFAC_Run.m |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/matlab/bmm/carfac/CARFAC_Run.m Wed Jun 12 19:24:29 2013 +0000 +++ b/trunk/matlab/bmm/carfac/CARFAC_Run.m Tue Jun 18 18:07:02 2013 +0000 @@ -141,14 +141,16 @@ if AGC_plot_fig_num figure(AGC_plot_fig_num); hold off; clf + maxmax = 0; for ear = 1:n_ears - maxes(ear) = max(CF.ears(ear).AGC_state.AGC_memory(:)); hold on for stage = 1:4; - plot(2^(stage-1) * CF.ears(ear).AGC_state.AGC_memory(:, stage)); + stage_response = 2^(stage-1) * CF.ears(ear).AGC_state(stage).AGC_memory; + plot(stage_response); + maxmax = max(maxmax, max(stage_response)); end end - axis([0, CF.n_ch+1, 0.0, max(maxes) * 1.01 + 0.002]); + axis([0, CF.n_ch+1, 0.0, maxmax * 1.01 + 0.002]); drawnow end