FN2CBPX.OMS
Script File:
# Description
# Converts a normalized filter to a continuous bandpass filter.
#
clear
# Compute the normalized filter
npole = 4
num_n = novalue
den_n = novalue
fnbut(npole, num_n, den_n)
#
# Convert to continuous band pass filter
cutoff = [1d0, 2d0]
num_bp = novalue
den_bp = novalue
fn2cbp(cutoff, num_n, den_n, num_bp, den_bp)
#
# minimum value on x axis
xmin = 1e-1
# maximum value on x axis
xmax = 1e+1
# minimum value on y axis
ymin = 1e-5
# maximum value on y axis
ymax = 1e+1
fcplot(xmin, xmax, ymin, ymax, cutoff, num_bp, den_bp)
gtitle("Bandpass Butterworth Filter")
Output:
|