xa=2*randint(1,2*L)-1; % BPSK signal generation
%xb=2*randint(1,L)-1;
e_xa=xa(1:2:end-1);
o_xa=xa(2:2:end);
rc=rcosine(1,oversamp, 'sqrt');
e_filtered = rcosflt(e_xa,1,oversamp,'filter',rc)*sqrt(oversamp); %filter
o_filtered = rcosflt(o_xa,1,oversamp,'filter',rc)*sqrt(oversamp); %filter
x_deci_r=[e_filtered', zeros(1, ceil(oversamp/2))];
x_deci_i=[zeros(1, ceil(oversamp/2)) o_filtered'];
t = (0:length(x_deci_i)-1)/Fs;
tx_sig = sqrt(1/2)*x_deci_r .* cos(2*pi*fc*t) + sqrt(1/2)*x_deci_i .* sin(2*pi*fc*t);