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

https://hub.exponenta.ru/
 

\Communications Toolbox

CommunicationsToolbox:  /

  \ \

FSKDEMOD

:

z = fskdemod(y,M,freq_sep,nsamp)
z = fskdemod(y,M,freq_sep,nsamp,Fs)

z = fskdemod(y,M,freq_sep,nsamp)

y. M ( ) 2. z , 0 M-1 . freq_sep ( ) . nsamp , ; y, . , y 1 . y - , .

z = fskdemod(y,M,freq_sep,nsamp,Fs)

, , Fs y ( ).

:

, (), , (BER) .

M = 2;       %   
k = log2(M); %    
EbNo = 5;    %      
Fs = 16;     %  
N = Fs;
nsamp = 17;  %    
freqsep = 8; %   
msg = randint(5000,1,M);                %   
txsig = fskmod(msg,M,freqsep,nsamp,Fs); %  
msg_rx  = awgn(txsig,EbNo+10*log10(k)-10*log10(N),...
   'measured',[],'dB');                 % -
msg_rrx = fskdemod(msg_rx,M,freqsep,nsamp,Fs);  % 
[num,SER] = symerr(msg,msg_rrx); %     
BER = SER*(M/2)/(M-1) %     
BER_theory = berawgn(EbNo,'fsk',M,'noncoherent') %   BER

. BER , .

BER =
    0.1006

BER_theory =
    0.1029

: fskmod, pskmod, pskdemod

  \ \

 

:


 Orphus