MATLAB è Simulink íà ðóññêîì

https://hub.exponenta.ru/
 

\Communications Toolbox

CommunicationsToolbox:

  \ \

QUANTIZ

:

index = quantiz(sig,partition);
[index,quants] = quantiz(sig,partition,codebook);
[index,quants,distor] = quantiz(sig,partition,codebook);

:

  • index = quantiz(sig,partition)

sig, partition. partition  , . partition n, index  -, k- :

- 0, sig(k) <= partition(1);
- m, partition(m) < sig(k) <= partition(m+1);
- n, sig(k) > partition(n).

  • [index,quants] = quantiz(sig,partition,codebook)

, , codebook , quants sig. codebook , partition. quants  -, sig. quants codebook index : quants = codebook(index+1);

  • [index,quants,distor] = quantiz(sig,partition,codebook)

, , distor .

.

, 1 100 , . quants , index  .

[index,quants] = quantiz([3 34 84 40 23],10:10:90,10:10:100)
index =

0
3
8
3
2

quants =

10 40 90 40 30

: lloyds, dpcmenco, dpcmdeco.

   \ \

 

:


 Orphus