[Master Index]
[Index for /tools/hpmatlab/toolbox/signal]
remez
(/tools/hpmatlab/toolbox/signal/remez.m)
Function Synopsis
[h,ha] = remez(nfilt, ff, aa, wtx, ftype)
Help text
REMEZ Parks-McClellan optimal equiripple FIR filter design.
B=REMEZ(N,F,M) returns a length N+1 linear phase (real, symmetric
coefficients) FIR filter which has the best approximation to the
desired frequency response described by F and M in the minimax
sense. F is a vector of frequency band edges in pairs, in ascending
order between 0 and 1. 1 corresponds to the Nyquist frequency or half
the sampling frequency. M is a real vector the same size as F
which specifies the desired magnitude of the frequency response of the
resultant filter B. The desired response is the line connecting the
points (F(k),M(k)) and (F(k+1),M(k+1)) for odd k; REMEZ treats the
bands between F(k+1) and F(k+2) for odd k as "transition bands" or
"don't care" regions. Thus the desired magnitude is piecewise linear
with transition bands. The maximum error is minimized.
B=REMEZ(N,F,M,W) uses the weights in W to weight the error. W has one
entry per band (so it is half the length of F and M) which tells
REMEZ how much emphasis to put on minimizing the error in each band
relative to the other bands.
B=REMEZ(N,F,M,'Hilbert') and B=REMEZ(N,F,M,W,'Hilbert') design filters
that have odd symmetry, that is, B(k) = -B(N+2-k) for k = 1, ..., N+1.
A special case is a Hilbert transformer which has an approx. magnitude
of 1 across the entire band, e.g. B=REMEZ(30,[.1 .9],[1 1],'Hilbert').
B=REMEZ(N,F,M,'differentiator') and B=REMEZ(N,F,M,W,'differentiator')
also design filters with odd symmetry, but with a special weighting
scheme for non-zero magnitude bands. The weight is assumed to be equal
to the inverse of frequency times the weight W. Thus the filter has a
much better fit at low frequency than at high frequency. This designs
FIR differentiators.
See also FIRLS, FIR1, FIR2, BUTTER, CHEBY1, CHEBY2, ELLIP, FREQZ and
FILTER.
Cross-Reference Information
This function calls
- abs /tools/hpmatlab/toolbox/matlab/elfun/abs.m
- acos /tools/hpmatlab/toolbox/matlab/elfun/acos.m
- any /tools/hpmatlab/toolbox/matlab/ops/any.m
- break /tools/hpmatlab/toolbox/matlab/lang/break.m
- clear /tools/hpmatlab/toolbox/matlab/general/clear.m
- computer /tools/hpmatlab/toolbox/matlab/elmat/computer.m
- cos /tools/hpmatlab/toolbox/matlab/elfun/cos.m
- diff /tools/hpmatlab/toolbox/matlab/datafun/diff.m
- disp /tools/hpmatlab/toolbox/matlab/general/disp.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- elseif /tools/hpmatlab/toolbox/matlab/lang/elseif.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- eval /tools/hpmatlab/toolbox/matlab/lang/eval.m
- exist /tools/hpmatlab/toolbox/matlab/ops/exist.m
- fix /tools/hpmatlab/toolbox/matlab/elfun/fix.m
- fliplr /tools/hpmatlab/toolbox/matlab/elmat/fliplr.m
- for /tools/hpmatlab/toolbox/matlab/lang/for.m
- grid /tools/hpmatlab/toolbox/matlab/plotxy/grid.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- input /tools/hpmatlab/toolbox/matlab/lang/input.m
- isnan /tools/hpmatlab/toolbox/matlab/ops/isnan.m
- j /tools/hpmatlab/toolbox/matlab/elmat/j.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
- more /tools/hpmatlab/toolbox/matlab/general/more.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- ones /tools/hpmatlab/toolbox/matlab/elmat/ones.m
- pi /tools/hpmatlab/toolbox/matlab/elmat/pi.m
- rem /tools/hpmatlab/toolbox/matlab/elfun/rem.m
- remezdd /tools/hpmatlab/toolbox/signal/remezdd.m
- return /tools/hpmatlab/toolbox/matlab/lang/return.m
- sign /tools/hpmatlab/toolbox/matlab/elfun/sign.m
- sin /tools/hpmatlab/toolbox/matlab/elfun/sin.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
- sum /tools/hpmatlab/toolbox/matlab/datafun/sum.m
- while /tools/hpmatlab/toolbox/matlab/lang/while.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