上传者: ludonghai0417
|
上传时间:2025/11/29 17:57:49
|
文件大小:5KB
|
文件类型:m
matlab数字升余弦仿真
clearall;closeall;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);
本软件ID:2965889