- function mod_symbols = modulate(bits_in, modulation)
- full_len = length(bits_in);
- if modulation==1
- mod_symbols = BPSKMod(bits_in);
- elseif modulation==2
- mod_symbols= QPSKMod(bits_in);
- elseif modulation==4
- mod_symbols = QAM16Mod(bits_in);
- elseif moulation==6
- mod_symbols= QAM64Mod(bits_in);
- else
- error('Undefined modulation');
- end