ifft_reverse_modulation.m

来自「一个在matlab环境下的DAB仿真程序源码。内含ofdm收发」· M 代码 · 共 26 行

M
26
字号
function [tf_max,fin_timing_offset]=ifft_reverse_modulation(N,reverse_modulation);

                                             % conj the local phase_reference_symbol
tf=[];
fin_timing_offset=[];
tf_max=[];
% for i=1:2;

        time_correlation(1,:)=ifftshift(ifft(reverse_modulation));      % search fin timing error  while n=T_error timing error is confirm  


%stem(mod(N,[1:N]),abs(time_correlation(1,:)));
   
        tf_abs(1,:)=abs(time_correlation(1,:));                     
        tf_max(1)=max(abs(time_correlation(1,:)));                                                            
         for k=1:N;
             if tf_max==tf_abs(1,k) ;
                 fin_timing_offset=k;                                                                                % find out timging 
             end;
             
         end;
    
    
    
%     
% end;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?