Calculation of channel capacity
51 ビュー (過去 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;
0 件のコメント
回答 (1 件)
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;
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!