上传者: ludonghai0417
|
上传时间: 2019-12-21 20:13:55
|
文件大小: 5KB
|
文件类型: m
clear all;
close all;
fd=1e3;
fs=fd*10;
delay=5;
%分别求四种情况下的升余弦函数
num1=rcosine(fd,fs,'fir/normal',0,delay);
num2=rcosine(fd,fs,'fir/normal',0.5,delay);
num3=rcosine(fd,fs,'fir/normal',0.75,delay);
num4=rcosine(fd,fs,'fir/normal',1,delay);
%分别求四种情况下的升余弦函数的幅度响应
Hwa=abs(fft(num1,1000));
Hwb=abs(fft(num2,1000));
Hwc=abs(fft(num3,1000));
Hwd=abs(fft(num4,1000));
angH1=angle(fft(num1,1000));
angH2=angle(fft(num2,1000));
angH3=angle(fft(num3,1000));
angH4=angle(fft(num4,1000));
t=0:1/fs:1/fs*(length(num1)-1); %分别画出四种情况下的升余弦对应的时域波形
figure(1);