ip_04_141.m

来自「电子工业出版社出版的国外电子与通信教材系列一书:现代通信系统(MATLAB版)(」· M 代码 · 共 17 行

M
17
字号
% MATLAB script for Illustrative Problem 4.14.1.

echo on
a=randn(1,500);
n=16;
[sqnr,a_quan,code]=u_pcm(a,16);
pause	% Press a key to see the SQNR.
sqnr
pause	% Press a key to see the first five input values.
a(1:5)
pause	% Press a key to see the first five quantized values.
a_quan(1:5)
pause	% Press a key to see the first five codewords.
code(1:5,:)
plot(a_quan)
[Y,I]=sort(a);
figure,plot(Y,a_quan(I))

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?