Skip to content
This repository
tag: v1.3
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 16 lines (15 sloc) 0.498 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
function Rni = Correlation_func(yrx,D,Nf,Np)
%Correlation_func correlations of receiving signal in 2D
% Created by Zhenrui Chen on Sept. 29, 2012
% @param {yrx} Receiving signal
% @param {D} Boundary of frame lag i
% @param {Nf} Length of frame
% @param {Np} Length of frame head

Rni = zeros(length(yrx)-Np-Nf-D,2*D+1);
for n=1:length(yrx)-Np-Nf-D
    PN1 = yrx(n:n+Np-1);
    for i=-D:D
        PN2 = yrx(n+Nf+i:n+Nf+i+Np-1);
        Rni(n,i+D+1) = PN1*PN2';
    end
end
Something went wrong with that request. Please try again.