sig=fmlin(128);
sig =real(sig);
siglen = length(sig); % 获取信号的长度
fs=1;
N = 128;
N = min(N, siglen);
for n = 1:siglen,
m = min([n-1,siglen-n,round(N/2)-1]);
tau = -m : m;
Temp = rem(N + tau,N) + 1;
WVD(Temp,n) = sig(n + tau) .* conj(sig(n - tau)); %计算x*(t-1/2τ) x(t+1/2τ)
end;
WVD = fft(WVD)/N;
f = linspace(-0.5,0.5,N)*fs;
t = (0: siglen-1)/fs;
contour(t,f,abs(WVD));
axis([min(t) max(t) min(f) max(f)]);
ylabel('f/ Hz');
xlabel('t / Sec');
请问 m = min([n-1,siglen-n,round(N/2)-1]);和Temp = rem(N + tau,N) + 1;这两句的作用是什么呢?谢谢!! |