[aimc] r300 committed - Plotting bug fix in CARFAC_Run.

0 views
Skip to first unread message

ai...@googlecode.com

unread,
Jun 18, 2013, 2:07:14 PM6/18/13
to aimc...@googlegroups.com
Revision: 300
Author: dick...@google.com
Date: Tue Jun 18 11:07:02 2013
Log: Plotting bug fix in CARFAC_Run.


http://code.google.com/p/aimc/source/detail?r=300

Modified:
/trunk/matlab/bmm/carfac/CARFAC_Run.m

=======================================
--- /trunk/matlab/bmm/carfac/CARFAC_Run.m Mon Jun 25 04:14:08 2012
+++ /trunk/matlab/bmm/carfac/CARFAC_Run.m Tue Jun 18 11:07:02 2013
@@ -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

Reply all
Reply to author
Forward
0 new messages