function symbols = bits_to_symbols_psk(bits) for i = 1:length(bits) if bits(i) == 0 symbols(i) = -1; else symbols(i) = 1; end end