搜索内容 搜索用户

# [未答复] 这段Gabor滤波器代码什么意思 本帖最后由 不多sali 于 2021-1-14 17:32 编辑 function out = auditory_RF(sideband,postinh) % function out = auditory_RF(LAT,BW,sideband,postinh) % % Computes and auditory RF model consisting of a Gabor, with or % without sidebands in frequency direction and a possible post-inhibition. % the parameters are: % LAT = [Latency Gabor, Latency post-inh]潜伏 % BW  = [Bandwidth Gabor, Bandwidth post-inh] 带宽 % sideband if 1 sidebands appear % postinh if 1 a post-inhibition is added % % time in 1 ms steps and frequency in quarter tones! % the parameters LAT = [24,50]; BW = [0.035,0.04]; Freq = 1; DUR = 5; if sideband   BW(1) = 0.08; else   BW(2) = 0.035; end % this is the frequency vector OCTAVES = round(1.3458*2.^[5:1/8:13]); % time in 1 ms steps and frequency in quarter tones! Fax = [0.3:1/32:1.7-0.000001]; Tax = [1:80]; [T,F] = meshgrid(Tax,Fax);%变成T,F两个坐标矩阵 LAT = LAT; BW = BW*4; % the gabor env = exp( -( ((T-LAT(1)).^2)/(2*DUR^2) + ((F-1).^2)/(2*BW(1)^2))); osc = cos(2*pi*F*Freq); out = osc.*env; if postinh   DUR2 = DUR*1.3;   env = exp( -( ((T-LAT(2)).^2)/(2*DUR2^2) + ((F-1).^2)/(2*BW(2)^2))); out = out - osc.*env/2;   end out = out/abs(sum(out(:))); return;复制代码
 本版积分规则 回帖后跳转到最后一页
##### 热门教程   