MATLAB: Bpsk bpsk mappinglookup sir how to convert 0 to -1 and 1 to +1 Best Answer % Example inputA = 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 SolutionsMATLAB: How to determine the mean value every 10 data points and then calculate the standard deviation of the mean values (150) Suppose A is a column vector 1500x1A = randn(1500,1);% first reshape into columns with 10 rowsA = reshape(A,10,150);% take the means over the columns meanz = mean(A);% now get the standard deviation of the meansstd(meanz)If A is a row vector, you can first transpose and then perform the above.A = A'; MATLAB: How to convert a 64 bit, two’s complement value(binary vector)[ 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1] into a signed integer swapbytes(typecast(uint8(bin2dec(char(reshape(fliplr(A),8,[]).' + '0'))),'int64')) Related Question
Best Answer