This is where navigation should be.

FILTERBANKSCALE - Scale filters in filterbank

Usage

g=filterbankscale(g,scal)
g=filterbankscale(g,'flag')
g=filterbankscale(g,L,'flag')
[g,scal]=filterbankscale(...)

Description

g=filterbankscale(g,scal) scales each filter in g by multiplying it with scal. scal can be either scalar or a vector of the same length as g. The function only works with filterbanks already instantiated (returned from a function with a filter (of filters) suffix or run trough filterbankwin) such that the elements of g must be either structs with .h or .H fields or be plain numeric vectors.

g=filterbankscale(g,'flag') instead normalizes each filter to have unit norm defined by 'flag'. It can be any of the flags recognized by setnorm. The normalization is done in the time domain by default. The normalization can be done in frequency by passing extra flag 'freq'.

g=filterbankscale(g,L,'flag') works as before, but some filters require knowing L to be instantialized to obtain their norm. The normalization will be valid for the lengh L only.

[g,scal]=filterbankscale(g,...) additionally returns a vector scal which contains scaling factors used.

In any case, the returned filters will be in exactly the same format as the input filters.