slepian.m

来自「现代信号谱估计算法的matlab代码 调用函数代码」· M 代码 · 共 23 行

M
23
字号
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 + =
减小字号Ctrl + -
显示快捷键?