Could you please explain the step below, what is the benefit of it and how does it work. . I do qpsk demodulation, do I started doing the meshgrid,
%%%%%%%de-qpsk sM = 2; [x,y] = meshgrid((-sM+1):2:(sM-1),(-sM+1):2:(sM-1)); alphabet = x(:) + 1i*y(:); datadeqpsk=; for k=1:N datadeqpsk(k) = alphabet((dataqpdk_be(k) alphabet)==min(dataqpdk_be(k)-alphabet)); % dataqpdk_be is the data end datadeqpsk_R=real(datadeqpsk); datadeqpsk_I=imag(datadeqpsk); dataend=;
Till now, all is ok, so what the benefit of below step? how does it work? could you please explain?
for ij=1:N dataend((ij-1)*2+1)=(datadeqpsk_R(ij)+1)/2; dataend(ij*2)=(datadeqpsk_I(ij)+1)/2; end R_D_data_out=[R_D_data_out dataend];
thank you very much