📄 slepian.m
字号:
function h=slepian(N,K,J)
%
% Generates the first J Slepian sequences of length N and "bandwidth
% factor" K as defined in Section 5.3.
%
% h=slepian(N,K,J);
%
% N <- the length of each Slepian sequence
% K <- the ratio of the baseband filter bandwidth to 1/N
% J <- the number of the Slepian sequences to return
% h -> an NxJ matrix whose ith column is the ith Slepian sequence
%
% Copyright 1996 by R. Moses
% generate the Gamma matrix
Gamma = toeplitz(K/N*sinc(K/N*[0:N-1]));
% eigenvalue decomposition; use svd because it orders eigenvalues
[U,D,V]=svd(Gamma);
h=U(:,1:J);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -