Skip to content

Commit

Permalink
zero-out negative nap
Browse files Browse the repository at this point in the history
  • Loading branch information
sedurCode committed Mar 2, 2021
1 parent cc9f7b0 commit f2feaee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matlab/CARFAC_binaural.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
for ear = 1:n_ears
smooth_nap = nap_decim(:, :, ear);
figure(ear + n_ears) % Makes figures 3 and 4
image(63 * abs((smooth_nap)' .^ 0.5))

% Rectify since nap can go slightly negative.
image(63 * (max(0, smooth_nap)' .^ 0.5));
colormap(1 - gray);
end

Expand Down

0 comments on commit f2feaee

Please sign in to comment.