필터 지우기
필터 지우기

Get Specific RX data

조회 수: 3 (최근 30일)
Ibnu Darajat
Ibnu Darajat 2022년 11월 24일
편집: Ibnu Darajat 2022년 11월 24일
Here is the code for BPSK modulation and demodulation:
bpskModulator = comm.BPSKModulator;
bpskDemodulator = comm.BPSKDemodulator;
errorRate = comm.ErrorRate;
awgnChannel = comm.AWGNChannel('BitsPerSymbol',1);
ebnoVec = 5:10; % Eb/No range
berBPSK = zeros(size(ebnoVec));
for n = 1:length(ebnoVec)
% Reset the error counter for each Eb/No value
reset(errorRate)
% Reset the array used to collect the error statistics
errVec = [0 0 0];
% Set the channel Eb/No
awgnChannel.EbNo = ebnoVec(n);
while errVec(2) < 200 && errVec(3) < 1e7
% Generate a 1000-symbol frame
data = double(codeword);
% Modulate the binary data
modData = bpskModulator(data);
% Pass the modulated data through the AWGN channel
rxSig = awgnChannel(modData);
% Demodulate the received signal
rxData = bpskDemodulator(rxSig);
% Collect the error statistics
errVec = errorRate(data,rxData);
end
% Save the BER data
berBPSK(n) = errVec(1);
And this is my Channel Decoding GUI design:
My question is, In the BPSK code there is a command :
ebnoVec = 5:10; % Eb/No range
How do I get the rxData value from Eb/No = 6 if I input it via edit text on the Channel Decoding GUI?

답변 (0개)

카테고리

Help CenterFile Exchange에서 BPSK에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by