mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
249 B
Matlab
14 lines
249 B
Matlab
10 years ago
|
function [peaks] = find_peaks(x, N_id_2, fft_size)
|
||
|
|
||
|
flen=4800*(ceil(fft_size/64));
|
||
|
|
||
|
n=floor(length(x)/flen)*flen;
|
||
|
xf=reshape(x(1:n),flen,[]);
|
||
|
|
||
|
[n m] = size(xf);
|
||
|
|
||
|
peaks=zeros(m,1);
|
||
|
for i=1:m
|
||
|
[w, peaks(i)]= find_pss2(xf(:,i),N_id_2,fft_size);
|
||
|
end
|