推荐星级:
  • 1
  • 2
  • 3
  • 4
  • 5

有限长序列频谱DFT的性质

更新时间:2020-03-11 21:30:18 大小:223K 上传用户:xuzhen1查看TA发布的资源 标签:频谱dft 下载积分:1分 评价赚积分 (如何评价?) 收藏 评论(0) 举报

资料介绍

实验数据记录和处理

(一) 实指数序列

otherwise

clear;clf;clc;% 清除缓存

n=0:9;% 设置区间

xn=((0.5).^n).*(0<=n&n<=9);

xw=dftmtx(10)*xn'; %用DFT 求频谱

f=n/10.*(0<=n&n<=5)+(10-n)/10.*(6<=n&n<=9); %求出对应频率

figure(1); %画出序列的实部、虚部、模、相角

subplot(2,2,1);stem(n,real(xn));

xlabel('n');ylabel('real(xn)');title(' 序列的实部');

subplot(2,2,2);stem(n,imag(xn));

xlabel('n');ylabel('imag(xn)');title(' 序列的虚部');

subplot(2,2,3);stem(n,abs(xn));

xlabel('n');ylabel('abs(xn)');title(' 序列的模');

subplot(2,2,4);stem(n,angle(xn));

xlabel('n');ylabel('angle(xn)');title(' 序列的相角');

figure(2); %画出序列的幅度谱、频谱实部、频谱虚部

subplot(3,1,1);stem(f,abs(xw));

xlabel('f/Hz');ylabel('abs(xw)');title(' 序列的幅度谱');

subplot(3,1,2);stem(f,real(xw));

xlabel('f/Hz');ylabel('real(xw)');title(' 频谱实部');

subplot(3,1,3);stem(f,imag(xw));

xlabel('f/Hz');ylabel('imag(xw)');title(' 频谱的虚部');

(2) a=0.9, length=10

%program 2.1.1B

clear;clf;clc;% 清除缓存

clear

n=0:9;

xn=((0.9).^n).*(0<=n&n<=9);

xw=dftmtx(10)*xn'; %用DFT 求频谱

3

f=n/10.*(0<=n&n<=5)+(10-n)/10.*(6<=n&n<=9); %求出对应频率

figure(1); %画出序列的实部、虚部、模、相角

部分文件列表

文件名 大小
有限长序列、频谱、DFT的性质.pdf 223K

全部评论(0)

暂无评论