Next  |  Prev  |  Up  |  Top  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search

Matlab for the DPSS Window

function [w,A,V] = dpssw(M,Wc);
% DPSSW - Digital Prolate Spheroidal Sequence window 
%         (Slepian window) of length M, having 
%         cut-off frequency Wc in (0,pi).
k = (1:M-1);
s = sin(Wc*k)./ k;
c0 = [Wc,s];
A = toeplitz(c0);   % c0=1st col of symm. Toeplitz mtx
[V,evals] = eig(A); % Only need principal eigenvector
[emax,imax] = max(abs(diag(evals)));
w = V(:,imax);
w = w / max(w);

\epsfig{file=eps/dpsskaiser-td.eps,width=5in}

Kaiser and DPSS Window Transforms Compared

\epsfig{file=eps/dpsskaiser-fd.eps,width=5in}


Next  |  Prev  |  Up  |  Top  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search

[Comment on this page via email]

``FFT Windows'', by Julius O. Smith III and Bill Putnam, (From Lecture Overheads, Music 421).
Copyright © 2020-06-27 by Julius O. Smith III and Bill Putnam
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA  [Automatic-links disclaimer]