I'm making a code and I don't know how to get the values that are being made inside the loop.
How do I see what the y results are?
Can anybody help me ?
M = 2;
N = 10^4;
Bits_ale = randi([0 M-1],N,1)>0.5;
s = 2 * Bits_ale-1;
Bit_wat = randi([0 M-1],N,1)>0.5;
if Bit_wat ==1
y = s * exp(1i * pi/4);
else if Bit_wat ==0
y = s * exp(1i *(- pi/4));