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

📄 fshift.mht

📁 这也是一个关于部分傅立叶变换的Matlab程序
💻 MHT
字号:
From: <由 Windows Internet Explorer 7 保存>
Subject: 
Date: Sat, 26 Apr 2008 08:21:27 +0800
MIME-Version: 1.0
Content-Type: text/html;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.mathworks.com/matlabcentral/files/7886/fshift.m
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"MSHTML 6.00.6000.16640" name=3DGENERATOR></HEAD>
<BODY><PRE>function y =3D fshift(x,s)
% FSHIFT Fractional circular shift
%   Syntax:
%
%       &gt;&gt; y =3D fshift(x,s)
%
%   FSHIFT circularly shifts the elements of vector x by a (possibly
%   non-integer) number of elements s. FSHIFT works by applying a linear
%   phase in the spectrum domain and is equivalent to CIRCSHIFT for =
integer
%   values of argument s (to machine precision).

% (c) 2005 Francois Bouffard
%          fbouffar@gel.ulaval.ca

needtr =3D 0; if size(x,1) =3D=3D 1; x =3D x(:); needtr =3D 1; end;
N =3D size(x,1);=20
r =3D floor(N/2)+1; f =3D ((1:N)-r)/(N/2);=20
p =3D exp(-j*s*pi*f)';=20
y =3D ifft(fft(x).*ifftshift(p)); if isreal(x); y =3D real(y); end;
if needtr; y =3D y.'; end;</PRE></BODY></HTML>

⌨️ 快捷键说明

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