Skip to content

Commit f2feaee

Browse files
committed
zero-out negative nap
1 parent cc9f7b0 commit f2feaee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

matlab/CARFAC_binaural.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
for ear = 1:n_ears
4242
smooth_nap = nap_decim(:, :, ear);
4343
figure(ear + n_ears) % Makes figures 3 and 4
44-
image(63 * abs((smooth_nap)' .^ 0.5))
45-
44+
% Rectify since nap can go slightly negative.
45+
image(63 * (max(0, smooth_nap)' .^ 0.5));
4646
colormap(1 - gray);
4747
end
4848

0 commit comments

Comments
 (0)