MATLAB è Simulink íà ðóññêîì

https://hub.exponenta.ru/
 

\Communications Toolbox

CommunicationsToolbox:  /

  \ \

OQPSKDEMOD

:

z = oqpskdemod(y)
z = oqpskdemod(y,ini_phase)

z = oqpskdemod(y)

y. , . oqpskdemod . y , . z (length(y) - 1)/2. z , 0 3 . y - , .

z = oqpskdemod(y,ini_phase)

, , ini_phase .

:

.

N = 10000; %  
snr = -10:10; %   / ( )
for k = 1:length(snr) %    SNR
    x = randint(N, 1, 4); %  
    y = oqpskmod(x); %  
    yn = awgn(y, snr(k), 'measured'); %  
    z = oqpskdemod(yn); %  
    [tmp, ser(k)] = symerr(z, x); %    
    [tmp, ber(k)] = biterr(z, x, 2); %    
end
semilogy(snr, [ber' ser'])
xlabel('SNR, dB')
ylabel('Error rate')
legend('Bit error rate', 'Symbol error rate')

. , / 8 .

: oqpskmod, pskmod, pskdemod, qammod, qamdemod, modnorm

  \ \

 

:


 Orphus