Hi i wrote a code to seperate a binary signal to groups of 4 bits and maping them to a complex number,but didnt work and i cant find why. Please help!
clear allclose allclca = [1 1 1 1 0 0 0 0 1 1 1 1]k=1for i=1:4:16 if a(i:i+3)=[0000] b(k)=1-3j else a(i:i+3)=[1111] b(k)=3+3j end k=k+1end
Best Answer