📄 ft.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 + -