フィルターのクリア

Calculation of channel capacity

36 ビュー (過去 30 日間)
Zaref Li
Zaref Li 2024 年 4 月 30 日
回答済み: sai charan sampara 2024 年 6 月 11 日
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;

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by