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

📄 ft.m

📁 经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助
💻 M
字号:
%  function name:FT
%  [X,w]=ft(x,t,W)
%  This program is used to compute the Fourier transform of a
%  continuous-time signal x(t)
%  x: The continous-time signal, vector
%  t: The time vector corresponding x
%  W: The range of frequency: -W~W, radians/sec 
%  X: Returned Fourier transform X of x, it is complex vector
%  w: Returned frequency vector corresponding X, radians/sec
function [X,w]=ft(x,t,W)
p=t(2)-t(1);
N=512;           
k=-N:N; 
w=k*W/N; 
X=x*exp(-j*t'*w)*p;

⌨️ 快捷键说明

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