Professional Documents
Culture Documents
Time Delay
Time Delay
Time Delay
transmit=awgn(transmit,snr); subplot(311); plot(transmit); refer=[y x x x x x x x x]; subplot(312); plot(refer); [xcf,lags,bounds]=crosscorr(transmit,refer,min(length(transmit),length(refer))-1 ) m=xcf'; n=max(m); subplot(313); plot(lags,xcf); xlabel('delay');ylabel('crosscorrelation'); for i=1:length(m) if m(i)==n ed=lags(i); end end estimated_delay=ed