from MELP source code by Oleg Basov
MELP encoder and decoder in Matlab

d_init.m
%   
global FMCQ_CODEBOOK; 
global stage1; 
global stage2; 
global melp_firs; 
global Cup Cdown; 

coeff;              %  
stage;              %   
codebook_fmcq1;      
codebook_fmcq2;     %      -
d_pdfs;             %    
Cup=0.0337435; 
Cdown=0.135418; 

t0=1;       %  ,     
            %     , 
p1=0;       %     
ls1=[0 0 0 0 0 0 0 0 0 0]; %     
G2pt=22; 
G2p_error=0; 
Gno=20; 
G2p=20;         %    
u1=0;           %      
jt1=0;          %    
fm1(1:10)=1;    %       
vp1=[];         %     
prev_scale=1;   %   
%   
v=[];               %     
state_pul(1:30)=0;  %     
state_noi(1:30)=0;  %     
state_syn(1:10)=0;  %    
state_disp(1:64)=0; %    
state_tilt=0;       %    
state_ase(1:10)=0;  %     

Contact us at files@mathworks.com