exe32.m

来自「将输入A律PCM编码器的正弦信号采样,进行PCM编码」· M 代码 · 共 14 行

M
14
字号
echo off
n=[0:10];
in=sin(0.2*pi*n); 
out1=zhe13(in);
[out_,code]=u_pcm(out1, 64);  %线性编码
subplot(2, 1, 1);
plot(in, out_,'-bo');  %量化输入输出关系
title('输入输出关系');xlabel('in');ylabel('out');
subplot(2, 1, 2);
plot(n, in-out_,'-r+');  %量化误差,out_为编码前的量化输出
title('量化误差');xlabel('n');ylabel('dV');
y=code;  %量化输出码组
disp('量化输出码组:');
disp(y);

⌨️ 快捷键说明

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