转载一个实现分数傅立叶变换的matlab程序,作者信息在程序中有。
|>Pz#DCy w}0rDWuR[ function FF=frft_PXJ(N,alpha);
F0ylJ
/E %matrix
yi*EE% % FF is the kernel matrix of fractional Fourier transform
(&Mv!6] % \copyright: zjliu
N*SUA4bnuM % Author's email:
zjliu2001@163.com +zZ]Txb( Ts=sqrt(2*pi/N); t=-(N-1)/2:(N-1)/2; t=t'; t=t*Ts;
S~U5xM^s variance=N/2/pi; HH=zeros(N); HH(:,1)=1; HH(:,2)=2*t;
O:Wd
,3_ for k=3:N;
2Ws'3Jz HH(:,k)=HH(:,k-1).*t*2-2*(k-2)*HH(:,k-2);
X/FR e[R end
uTNy{RBD+ HH(:,1)=1/sqrt(sqrt(variance))*HH(:,1).*exp(-t.*t/2);
<4P.B?-/t for k=2:N;
RmJ|g< HH(:,k)=exp(-t.*t/2).*HH(:,k)/sqrt(2.^(k-1)*...
't+'rG6x factorial(k-1)*sqrt(variance));
? kCo/sW end
{m/KD 'b_ if mod(N,2)==1;
N5 mhs# W=0:N-1; k=exp(-i*alpha*W); D=diag(k);
5?*Iaw else
>%A~ : W=0:N-2; W=cat(2,W,[N]); k=exp(-i*alpha*W); D=diag(k);
W4"1H0s`l end
$ZlzS`XF7 FF=Ts*HH*D*HH'*2;
s:ojlmPb % Reference:
jJAr #| % by 平先军.一种新的分数阶傅立叶变换快速算法.电子学报.
|y&vMx~t % 2001(3),Vol.29:406-408.