Code

getsincdwt.m - Get DWT synchronization for chain-processing

David Valencia December 5, 2010 Coded in Matlab

This program is needed by the DWT chain-processing program.

More details on the blog post:

http://www.dsprelated.com/showarticle/126.php

This works for up to 3 stages.

% UPIITA IPN 2010
% Valencia Pesqueira José David

% Function used to obtain the synchronization factor for each
% branch in the DWT chain-processing program

function [x] = getsincdwt(n_etapas, rama, Lfiltrobase)

switch(n_etapas)
    case 1 %One stage, two-branches. DWPT equivalent
        x = 0;
        
    case 2  %2 stages, 3 branches
        switch(rama)
            case 1 % High-pass branch
                x = (Lfiltrobase-1)*2;
            otherwise
                x = 0;
        end
        
    case 3 %3 branches, 4 stages
        switch(rama)
            case 1 % High-pass branch
                x = (Lfiltrobase-1)*2;
            case 2
                x = 10;
            otherwise
                x = 0;
        end
end

% Experimental ANALISIS
% 2 etapas
% lfiltro - sinc_factor experimental
% 
% 4 - 6       (4-1)*2 = 6
% 6 - 10	    (6-1)*2 = 10
% 8 - 14	    (8-1)*2 = 7

Comments:

There are no comments yet!


Sorry, you need javascript enabled to post any comments.