Switch filter specification between normalized frequency and absolute frequency
normalizefreq(d)
normalizefreq(d,flag)
normalizefreq(d,false,fs)
normalizefreq(d)
normalizes
the frequency specifications in filter specifications object d
.
By default, the NormalizedFrequency
property
is set to true
when you create a design object.
You provide the design specifications in normalized frequency units. normalizefreq
does
not affect filters that already use normalized frequency.
If you use this syntax when d
does not use
normalized frequency specifications, all of the frequency specifications
are normalized by fs
/2 so they lie between 0 and
1, where fs
is specified in the object. Included
in the normalization are the filter properties that define the filter
pass and stopband edge locations by frequency:
F3 dB
— Used by IIR filter
specifications objects to describe the passband cutoff frequency
Fcutoff
— Used by FIR filter
specifications objects to describe the passband cutoff frequency
Fpass
— Describes the passband
edges
Fstop
— Describes the stopband
edges
In this syntax, normalizefreq(d)
assumes
you specified fs
when you created d
or
changed d
to use absolute frequency specifications.
normalizefreq(d,flag)
where flag
is
either true
or false
,
specifies whether the NormalizedFrequency
property
value is true
or false
and therefore
whether the filter normalizes the sampling frequency fs
and
other related frequency specifications. fs
defaults
to 1 for this syntax.
When you do not provide the input argument flag
,
it defaults to true
. If you set flag
to false
,
affected frequency specifications are multiplied by fs
/2
to remove the normalization. Use this syntax to switch your filter
between using normalized frequency specifications and not using normalized
frequency specifications.
normalizefreq(d,false,fs)
lets
you specify a new sampling frequency fs
when you
set the NormalizedFrequency
property to false
.
fdesign.halfband
| fdesign.highpass
| fdesign.interpolator
| fdesign.lowpass