?? laf.m
字號:
function out = laf(wig, t, f, M)% laf -- compute the local ambiguity function at a time-frequency point%% Usage% q = laf(wig, t, f, M)%% Inputs% wig Wigner distribution of the signal (see wigner1.m)% t time% f frequency% M rectangular window on the Wigner distribution. Used to limit% the computational requirements. (optional, defaults to 32)%% Outputs% q the local ambiguity function the time-frequency point% Copyright (C) -- see DiscreteTFDs/Copyrighterror(nargchk(3,4,nargin));if (nargin==3) M = 32;endN = length(wig);mtau = min(t-1, N-t);mtau = min(mtau, M);mtheta = min(f-1, N-f);mtheta = min(mtheta, M);out = zeros(mtau+1, 2*mtheta+1);for theta = -mtheta:mtheta, out(:,theta+mtheta+1) = ... (wig(f+theta,t:t+mtau).*wig(f-theta,t:-1:t-mtau))';endout = [out; zeros(M-mtau, 2*mtheta+1)];out = [zeros(M+1,M-mtheta ) out zeros(M+1,M-mtheta)];
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -