Pluto-Network/code/matlab/BPSK/receiver/rx_delete_pilot.m

21 lines
460 B
Matlab
Raw Normal View History

2018-01-30 06:11:44 +00:00
function out_signal = rx_delete_pilot(signal)
Nr=64+8;
Ns=length(signal)/Nr;
signal=reshape(signal,Nr,Ns);
signal=signal.';
% N=size(signal,2);
% out_signal=[];
% for i=9:N
% out_signal1=signal(:,i);
% out_signal=[out_signal out_signal1];
% end
% out_signal=out_signal(:)';
out_signal=signal(:,(9:end));
out_signal=reshape(out_signal,1,128*4);
c=max([abs(real(out_signal)),abs(imag(out_signal))]);
out_signal=out_signal ./c;
end