필터 지우기
필터 지우기

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 CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by