choose the program for BPSK which is executable and will display error rate and demodulated data Select one:a.M = 2; % Modulation orderk = log2(M); % Bits per symbolsnr=10;numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,k);txSig = pskmod(dataIn,M);rxSig = awgn(txSig,snr);rxSym = pskdemod(rxSig,M);round(rxSym)nErrors = biterr(dataIn, rxSym);[nErrors err_rate] = biterr(dataIn, rxSym)b.M = 2; % Modulation orderk = log2(M); % Bits per symbolsnr=10;numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,k)txSig = pskmod(dataIn,M)rxSym = pskdemod(rxSig,M);nErrors = biterr(dataIn, rxSym);[nErrors err_rate] = biterr(dataIn, rxSym)c.M = 2; % Modulation orderk = log2(M); % Bits per symbolsnr=10;numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,k)txSig = pskmod(dataIn,M)rxSig = awgn(txSig,snr)rxSym = pskdemod(rxSig,M);round(rxSym)nErrors = biterr(dataIn, rxSym);[nErrors err_rate] = biterr(dataIn, rxSym)d.M = 2; % Modulation orderk = log2(M); % Bits per symbolsnr=10;numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,k);txSig = pskmod(dataIn,M)rxSig = awgn(txSig,snr)rxSym = pskdemod(rxSig,M);round(rxSym)nErrors = biterr(dataIn, rxSym);[nErrors err_rate] = biterr(dataIn, rxSym)
Question
choose the program for BPSK which is executable and will display error rate and demodulated data Select one:a.M = 2; % Modulation orderk = log2(M); % Bits per symbolsnr=10;numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,k);txSig = pskmod(dataIn,M);rxSig = awgn(txSig,snr);rxSym = pskdemod(rxSig,M);round(rxSym)nErrors = biterr(dataIn, rxSym);[nErrors err_rate] = biterr(dataIn, rxSym)b.M = 2; % Modulation orderk = log2(M); % Bits per symbolsnr=10;numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,k)txSig = pskmod(dataIn,M)rxSym = pskdemod(rxSig,M);nErrors = biterr(dataIn, rxSym);[nErrors err_rate] = biterr(dataIn, rxSym)c.M = 2; % Modulation orderk = log2(M); % Bits per symbolsnr=10;numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,k)txSig = pskmod(dataIn,M)rxSig = awgn(txSig,snr)rxSym = pskdemod(rxSig,M);round(rxSym)nErrors = biterr(dataIn, rxSym);[nErrors err_rate] = biterr(dataIn, rxSym)d.M = 2; % Modulation orderk = log2(M); % Bits per symbolsnr=10;numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,k);txSig = pskmod(dataIn,M)rxSig = awgn(txSig,snr)rxSym = pskdemod(rxSig,M);round(rxSym)nErrors = biterr(dataIn, rxSym);[nErrors err_rate] = biterr(dataIn, rxSym)
Solution
The correct answer is option a.
This is because it is the only program that correctly follows the steps of BPSK modulation and demodulation, and also calculates and displays the error rate and demodulated data.
The other options either lack the AWGN noise addition step (b), or they don't correctly calculate and display the demodulated data and error rate (b, c, d).
Here is a step-by-step explanation of the correct program:
-
M = 2; % Modulation order: This sets the modulation order to 2, which is correct for BPSK.
-
k = log2(M); % Bits per symbol: This calculates the number of bits per symbol, which is 1 for BPSK.
-
snr=10;: This sets the signal-to-noise ratio to 10.
-
numSymPerFrame = 50;: This sets the number of symbols per frame to 50.
-
dataIn = randi([0 k],numSymPerFrame,k);: This generates a random input data array.
-
txSig = pskmod(dataIn,M);: This modulates the input data using BPSK.
-
rxSig = awgn(txSig,snr);: This adds AWGN noise to the transmitted signal.
-
rxSym = pskdemod(rxSig,M);: This demodulates the received signal.
-
round(rxSym): This rounds the demodulated symbols to the nearest integer.
-
nErrors = biterr(dataIn, rxSym);: This calculates the number of bit errors.
-
[nErrors err_rate] = biterr(dataIn, rxSym): This calculates the number of bit errors and the error rate.
Similar Questions
choose the correct executable program if you had to find BER of 8-ary PSK modulationSelect one:a.M = 8; % Modulation orderk = log2(M); % Bits per symbolsnr=10numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,1)txSig = pskmod(dataIn,M)rxSig = awgn(txSig,snr);rxSym = pskdemod(rxSig,M);nErrors = biterr(dataIn, rxSym)b.M = 16; % Modulation orderk = log2(M); % Bits per symbolsnr=10numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,1)txSig = pskmod(dataIn,M)rxSig = awgn(txSig,snr);rxSym = qamdemod(rxSig,M);nErrors = biterr(dataIn, rxSym)c.M = 16; % Modulation orderk = log2(M); % Bits per symbolsnr=10numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,1)txSig = pskmod(dataIn,M)rxSig = awgn(txSig,snr);rxSym = pskmod(rxSig,M);nErrors = biterr(dataIn, rxSym)d.M = 8; % Modulation orderk = log2(M); % Bits per symbolsnr=10numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,1)txSig = pskmod(dataIn,k)rxSig = awgn(txSig,snr);rxSym = pskmod(rxSig,k);nErrors = biterr(dataIn, rxSym)
Consider a binary data sequence of bit rate 8992 Hz modulated by a carrier of 21031 Hz to obtain BPSK.*i) Calculate the bandwidthanswer format example if answer is 3.5khz write as 3500 ( only number) don't write as 3.5khz
pick the correct program to find BERSelect one:a.M = 16; % Modulation orderk = log2(M); % Bits per symbolnumSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,1)txSig = qammod(dataIn,M);rxSig = awgn(txSig,snrdB,'measured');rxSym = qamdemod(rxSig,M);dataOut = de2bi(rxSym,k);nErrors = biterr(dataIn,dataOut);b.M = 16; % Modulation orderk = log2(M); % Bits per symbolsnr=20numSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,1)txSig = qammod(dataIn,M)rxSig = awgn(txSig,snr);rxSym = qamdemod(rxSig,M);nErrors = biterr(dataIn, rxSym)c.M = 16; % Modulation orderk = log2(M); % Bits per symbolnumSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,1)txSig = qammod(dataSym,M);rxSig = awgn(txSig,snrdB,'measured');rxSym = qamdemod(rxSig,M);dataOut = de2bi(rxSym,k);nErrors = biterr(dataIn,dataOut);d.M = 16; % Modulation orderk = log2(M); % Bits per symbolnumSymPerFrame = 50;dataIn = randi([0 k],numSymPerFrame,1)txSig = qammod(dataIn,M)rxSig = awgn(txSig,snr);rxSym = qamdemod(rxSig,M);nErrors = biterr(dataIn, rxSym)
bpskmod = comm.BPSKModulatorhint: execute the instruction before answering 1.creates a modulator System object™ that modulates the input signal using the binary frequency shift keying (BFSK) method.2.the phase offset when the above command is used is 03. the output data after executing this instruction would be 1+i0 or -1+i0Select one:a. 1 correct, 2, 3 incorrectb. 1,3 correct, 2 incorrectc. 1,2 correct 3, incorrectd. all correcte. all incorrect
Consider a BPSK modulated signal with bandwidth 4978 Hz i) Calculate the input data rateanswer format example if answer is 3.5khz write as 3500 ( only number) don't write as 3.5khz
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.