You are on page 1of 1

function wig = wvdist(sig) % wvdist -- Distribution Wigner-Ville sig = sig(:); n = length(sig); f = [zeros(n,1); sig; zeros(n,1)]; wig = zeros(n, n);

ix = 0:(n/2-1); zerosn = zeros(n,1); for t=1:n, tplus tminus = n x = zerosn; x(1:(n/2)) = wig(:,t) = 2 end

= n + t + ix; + t - ix; f(tplus) .* f(tminus); * fft(x);

abstf = abs(wig); tfmax = max(max(abstf)); tfmin = min(min(abstf)); colormap(jet) %colormap(1-gray(256)) image(linspace(0,1,n),linspace(0,1,n),256*(abstf-tfmin)/(tfmax-tfmin)); axis('xy') title('Wigner Distribution'); xlabel('Time') ylabel('Frequency') % % % % % Copyright (c) 1994-5, Shaobing Chen Part of WaveLab version .701 This is Copyrighted Material For copying permissions see copying.m Comments? e-mail wavelab@playfair.stanford.edu

You might also like