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

📄 ctft_beike.m

📁 经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助
💻 M
字号:
% 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -