We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc9f7b0 commit f2feaeeCopy full SHA for f2feaee
1 file changed
matlab/CARFAC_binaural.m
@@ -41,8 +41,8 @@
41
for ear = 1:n_ears
42
smooth_nap = nap_decim(:, :, ear);
43
figure(ear + n_ears) % Makes figures 3 and 4
44
- image(63 * abs((smooth_nap)' .^ 0.5))
45
-
+ % Rectify since nap can go slightly negative.
+ image(63 * (max(0, smooth_nap)' .^ 0.5));
46
colormap(1 - gray);
47
end
48
0 commit comments