⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hmat.m

📁 JLAB is a set of Matlab functions I have written or co-written over the past fifteen years for the p
💻 M
字号:
function[h]=hmat(N,dt)%HMAT Hilbert transform matrix%%  H=HMAT(N) returns a matrix an NxN matrix H such that the matrix%  multiplication Y=H*X for X another NxN matrix returns a matrix Y,%  which is the discrete Hilbert transform of X.%%  H=HMAT(N,DT) specifies the 'time' step, assumed to be one%  otherwise, between the elements of the columns of X.  %   _________________________________________________________________%   This is part of JLAB --- type 'help jlab' for more information%   (C) 2004 J.M. Lilly --- type 'help jlab_license' for details          if nargin==1  dt=1;endf=fmat(N,dt);sgnom=ones(N,1);sgnom(1)=0;index=[1:N];index=find(index-1>N/2);sgnom(index)=-1;d=sqrt(-1)*diag(sgnom);h=f'*d*f;if 0  h=zeros(N,N);if iseven(N)   t=[-(N-2)/2:N/2]';elseif isodd(N)   t=[-(N-1)/2:(N-1)/2]';endindex=[1:length(h(:))]';[ii,jj]=ind2sub(size(h),index);h(index)=frac(dt,pi).*frac(1,t(ii)-t(jj));index=find(~isfinite(h));h(index)=0;end

⌨️ 快捷键说明

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