?? ctft_beike.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 + -