Effacer les filtres
Effacer les filtres

Calculation of channel capacity

28 vues (au cours des 30 derniers jours)
Zaref Li
Zaref Li le 30 Avr 2024
Hi everyone,
I want to plot the graph of channel capacity in SNR. I wrote such a code for him. I'm not sure of its accuracy. Are this code and the resulting graph correct?
SNR_dB = 0:.1:50;
B = 1; % BW (Hz)
C = B * log2(1 + 10.^(SNR_dB/10));
plot(SNR_dB, C, 'LineWidth', 1);
xlabel('SNR (dB)');
ylabel('Channel Capacity (bit/s)');
grid on;

Réponses (1)

sai charan sampara
sai charan sampara le 11 Juin 2024
Hello Zaref,
The above code you provided appears to be correct for plotting the graph of channel capacity in SNR(dB) provided the channel is a fixed bandwidth ("B" in the above code) Gaussian Channel in the presence of additive Gaussian noise. This relation is called the Shannon-Hartley Theorem. The graph is also the accurate representation of the same.
SNR_dB = -20:.1:30;
B = 1; % BW (Hz)
C = B * log2(1 + 10.^(SNR_dB/10));
plot(SNR_dB, C, 'LineWidth', 1);
xlabel('SNR (dB)');
ylabel('Channel Capacity (bit/s)');
grid on;

Community Treasure Hunt

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

Start Hunting!

Translated by