QPSK调制MATLAB代码
main.m
main.m
。
send = round(rand(1,20)); %生成1行20列
f=100;
symbolsModulation=QPSKMudulation(send,f);
QPSKMudulation.m
function [symbolsModulation] = QPSKMudulation(send,f)
Len = 10;
M = 4 ; %qpsk m=4
bitsPerSymbol = log2(M) ; % log2(M)为2
bitsTotal = bitsPerSymbol * Len ; %QPSK一共20个数据
Qpsk = [-1-1i; -1+1i; 1-1i; 1+1i] * sqrt(1/2); %QPSK符号
sendReshape = reshape(send, bitsPerSymbol,