Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2011-08-11
帖子: 1
声望力: 0 ![]() |
![]()
本人最近做的毕设中,用matlab仿真ofdm系统,想对比下对信号进行不同窗函数的加窗的性能,在ifft之后,上变频之前进行加入窗函数,目前只仿真了升余弦,见下
frame_I_in=zeros(1,length(frame_I)*2); frame_Q_in=zeros(1,length(frame_I)*2); frame_I_in(1:2:end)=frame_I; frame_Q_in(1:2:end)=frame_Q; raise=rcosine(4.096e6,8.192e6,'fir',0.5); frame_I_raise=conv(frame_I_in,raise); frame_Q_raise=conv(frame_Q_in,raise); frame_I_raise=frame_I_raise(7:end-6); frame_Q_raise=frame_Q_raise(7:end-6); raise_fft=abs(fft(frame_I_raise)); n_raise=length(frame_I_raise); max1_fft=max(raise_fft); fft_relative=abs(raise_fft)/max1_fft; figure(12) subplot(211) df1=fIQ/n_raise; i=-n_raise/2:n_raise/2-1; plot(i*df1,fftshift(20*log10(fft_relative))); title('升余弦后OFDM频域响应') xlabel('f/fIQ') ylabel('DB') grid on 现在想仿真加blackman,汉宁,汉明窗后的程序,不知道如何调用函数,和设置相关的频率参数,望高手能给出个框架或者方法,谢谢! |
![]() |
![]() |