Demo entry 6762366

demo

   

Submitted by anonymous on Oct 13, 2018 at 04:55
Language: Matlab. Code size: 366 Bytes.

close all;
clear;
clc;

B = 3000;
% 带宽

S_N_dB = 20: 1 : 30;
% 信噪比S/N从20db到30db取值

S_N = 10 .^ ((S_N_dB / 10));
% 信噪比从db到数值的转换

C = B .* log2(1 + S_N );
% 信道容量公式 C = B * log2(1 + S/N);

plot(S_N_dB, C, 'r-.');
grid on;

title('加性高斯白噪声信道容量C与信噪比S/N关系图');
% 关系图题目

xlabel('信噪比S/N(dB)');
% 横坐标为信噪比S/N(dB)

ylabel('信道容量C(b/s)');
% 纵坐标为信道容量C(b/s)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).