ctft_beike.m
来自「经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助」· M 代码 · 共 17 行
M
17 行
% ctft
clear,close all,
dt = 0.01;dw = 0.1;
t = -2:dt:2;
w = -8*pi:dw:8*pi;
x = u(t+1)-u(t-1);
X = x*exp(-j*w'*t)'*dt;
subplot(221)
plot(t,x)
subplot(222)
plot(w,abs(X))
title('Magnitude spectrum of x(t)')
axis([-8*pi,8*pi,0,2])
subplot(224)
plot(w,angle(X))
axis([-8*pi,8*pi,-pi,pi])
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?