Calculation of channel capacity

36 次查看(过去 30 天)
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;

回答(1 个)

sai charan sampara
sai charan sampara 2024-6-11
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