git-svn-id: http://moon:8086/svn/matlab/trunk@153 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
2021-03-22 20:28:22 +00:00
parent 1b5742e13e
commit b31f3e7435
140 changed files with 6054 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
% ##################################################################################
% ## Funktion [aq,nfa]=lcoefrnd(a,w) ##
% ##################################################################################
% Quantisierung eines Koeffizientenvektors A auf eine gewuenschte Wortlaenge W.
function [aq,nfa]=lcoefrnd(a,w)
f = log(max(abs(a)))/log(2); % Normierung von A
n = 2^ceil(f); % durch n (Potenz von 2), so dass,
an = a/n; % 1 >= an >= -1.
aq = lfxquant(an,w); % Quantisierung von a, so dass,
% 1 > aq >= -1;
nfa = n; % Normierungsfaktor
% ##### EOF #####