📄 tutdpcm.m
字号:
function tutdpcm
%TUTDPCM Shows a source coding example.
% This function is called by the commhelp.html
%
% See also: hmodem.
% Wes Wang 11/20/95.
% Copyright (c) 1995-96 by The MathWorks, Inc.
% $Revision: 1.1 $ $Date: 1996/04/01 18:04:05 $
figure
t = [0:.1:40];
sig = sin(t);
[p_tran,codebook,partition]=dpcmopt(sig,1,8);
indx = dpcmenco(sig, codebook,partition,p_tran);
quant = dpcmdeco(indx, codebook, p_tran);
subplot(211);plot(t,indx);
title('Quantized digital output.');
subplot(212);plot(t,[sig;quant]');
title('Quantization recovery vs. orginal signal.');
%---end of tutdpcm---
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -