dpss.m

来自「书籍Detection, Estimation, and Modulation 」· M 代码 · 共 18 行

M
18
字号
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DPSS.m
% calculates DPSS weights
% Lillian Xiaolan Xu
% Last updated 9/6/00 by K. Bell
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function w=DPSS(psi0,N)
	for ma=1:N
		for na=1:N
			A(ma,na)=2*psi0*sinc((ma-na)*psi0/pi);		
		end;
	end;

	[E eigv]=eig(A);
	[Y,index]=sort(real(diag(eigv)));
	w=E(:,index(N));
				%Discrete Prolate Spheroidal Function

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?