allpassrateup
Allpass filter for integer upsample transformation
Syntax
[AllpassNum,AllpassDen] = allpassrateup(N)
Description
[AllpassNum,AllpassDen] = allpassrateup(N)
returns
the numerator, AllpassNum
, and the denominator, AllpassDen
,
of the N
th-order allpass mapping filter for performing
the rateup frequency transformation, which creates N
equal
replicas of the prototype filter frequency response.
Relative positions of other features of an original filter do not change in the target filter. This means that it is possible to select two features of an original filter, F1 and F2, with F1 preceding F2. Feature F1 will still precede F2 after the transformation. However, the distance between F1 and F2 will not be the same before and after the transformation.
Examples
Design the allpass filter creating the effect of upsampling
the digital filter four times
:
Choose any feature from an original filter, say at W
o=0.2
:
N = 4; Wo = 0.2; Wt = Wo/N + 2*[0:N-1]/N; [AllpassNum, AllpassDen] = allpassrateup(N);
Calculate the frequency response of the mapping filter in the full range:
[h, f] = freqz(AllpassNum, AllpassDen, 'whole');
Arguments
Variable | Description |
---|---|
N | Frequency replication ratio (upsampling ratio) |
AllpassNum | Numerator of the mapping filter |
AllpassDen | Denominator of the mapping filter |
Version History
Introduced in R2011a