[Master Index]
[Index for /tools/hpmatlab/toolbox/signal]
remezord
(/tools/hpmatlab/toolbox/signal/remezord.m)
Function Synopsis
[N, ff, aa, wts] = remezord(fcuts, mags, devs, fsamp)
Help text
REMEZORD FIR order estimator (lowpass, highpass, bandpass, multiband)
[N,Fo,Mo,W] = REMEZORD(F,M,DEV,Fs) finds the approximate order N,
normalized frequency band edges Fo, frequency band magnitudes Mo and
weights W to be used by the REMEZ function as follows:
B = REMEZ(N,Fo,Mo,W)
The resulting filter will approximately meet the specifications given
by the input parameters F, M, and DEV. F is a vector of cutoff
frequencies in Hz, in ascending order between 0 and half the sampling
frequency Fs. If you do not specify Fs, it defaults to 2. M is a vector
specifying the desired function's amplitude on the bands defined by F.
The length of F is twice the length of M, minus 2 (it must therefore
be even). The first frequency band always starts at zero, and the last
always ends at Fs/2. DEV is a vector of maximum deviations or ripples
allowable for each band.
EXAMPLE: Design a lowpass filter with a passband cutoff of 1000Hz, a
stopband cutoff of 2000Hz, passband ripple of 0.01, stopband ripple
of 0.1, and a sampling frequency of 8000Hz:
[n,fo,mo,w] = remezord( [1000 2000], [1 0], [0.1 0.01], 8000 );
b = remez(n,fo,mo,w);
CAUTION 1: The order N is often underestimated. If the filter does not
meet the original specifications, a higher order such as N+1 or N+2
will.
CAUTION 2: Results are inaccurate if cutoff frequencies are near zero
frequency or the Nyquist frequency.
Cross-Reference Information
This function calls
- ceil /tools/hpmatlab/toolbox/matlab/elfun/ceil.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- for /tools/hpmatlab/toolbox/matlab/lang/for.m
- i /tools/hpmatlab/toolbox/matlab/elmat/i.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- max /tools/hpmatlab/toolbox/matlab/datafun/max.m
- min /tools/hpmatlab/toolbox/matlab/datafun/min.m
- nargchk /tools/hpmatlab/toolbox/matlab/lang/nargchk.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- ones /tools/hpmatlab/toolbox/matlab/elmat/ones.m
- remlpord /tools/hpmatlab/toolbox/signal/remlpord.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
This function is called by
- filtdemo /tools/hpmatlab/toolbox/signal/filtdemo.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON