-1
C =乙LOG2(1 + SNR)如何能夠在MATLAB繪製此如何解決在MATLAB帶寬和香農容量
figure('Color', 'white')
SNR = 1000 ;
B = 4.* 10^6 ;
C = (4 .*10^6) .* log2(1+1000);
plot(C)
xlabel('SNR');
ylabel('B (MHz)');
title('Throuput')
C =乙LOG2(1 + SNR)如何能夠在MATLAB繪製此如何解決在MATLAB帶寬和香農容量
figure('Color', 'white')
SNR = 1000 ;
B = 4.* 10^6 ;
C = (4 .*10^6) .* log2(1+1000);
plot(C)
xlabel('SNR');
ylabel('B (MHz)');
title('Throuput')
要繪製C作爲SNR的函數:
SNR = logspace(-1,2,1000); %// choose as desired
B = 4e6;
C = B*log2(1+SNR);
plot(10*log10(SNR),C) %// SNR in dB
xlabel('SNR (dB)')
ylabel('Capacity (bit/s)')
或
plot(SNR,C) %// SNR in natural units
xlabel('SNR')
ylabel('Capacity (bit/s)')
你能解釋一下嗎,你想達到什麼目的? Luis的示例代碼是繪製通道容量與SNR的關係曲線 – User1551892