MATLAB: Bpsk

bpsk mappinglookup

sir how to convert 0 to -1 and 1 to +1

Best Answer

% Example input
A = randi([0 1],10,1);
Cellarray lookup table:
B = {'-1', '+1'};
C = B(A+1).';
Or char array table:
B = ['-1'; '+1'];
C = B(A+1,:)
Related Question