%pcm.m
t = [0:0.1:2*pi];
s = sin(t);
% pcm8
[sqnr8,aquan8,code8]=upcm(s,8);
% pcm16
[sqnr16,aquan16,code16]=upcm(s,16);
plot(t,s,t+0.2,aquan8,'-.',t+0.4,aquan16,'*')
pcm量化编码
最新推荐文章于 2023-04-08 16:25:25 发布
%pcm.m
t = [0:0.1:2*pi];
s = sin(t);
% pcm8
[sqnr8,aquan8,code8]=upcm(s,8);
% pcm16
[sqnr16,aquan16,code16]=upcm(s,16);
plot(t,s,t+0.2,aquan8,'-.',t+0.4,aquan16,'*')