[Master Index]
[Index for /tools/hpmatlab/toolbox/signal]
invfreqz
(/tools/hpmatlab/toolbox/signal/invfreqz.m)
Function Synopsis
[b,a]=invfreqz(g,w,nb,na,wf,maxiter,tol,pf)
Help text
INVFREQZ Discrete filter least squares fit to frequency response data.
[B,A] = INVFREQZ(H,W,NB,NA) gives real numerator and denominator
coefficients B and A of orders NB and NA respectively, where
H is the desired complex frequency response of the system at frequency
points W, and W contains the frequency values in radians/s.
[B,A]=INVFREQZ(H,W,NB,NA,Wt) allows the fit-errors to the weighted
versus frequency. LENGTH(Wt)=LENGTH(W)=LENGTH(H).
Determined by minimization of sum |B-H*A|^2*Wt over the freqs in W.
[B,A] = INVFREQZ(H,W,NB,NA,Wt,ITER) does another type of fit:
Sum |B/A-H|^2*Wt is minimized with respect to the coefficients in B and
A by numerical search in at most ITER iterations. The A-polynomial is
then constrained to be stable. [B,A]=INVFREQZ(H,W,NB,NA,Wt,ITER,TOL)
stops the iterations when the norm of the gradient is less than TOL.
The default value of TOL is 0.01. The default value of Wt is all ones.
This default value is also obtained by Wt=[].
[B,A]=INVFREQZ(H,W,NB,NA,Wt,ITER,TOL,'trace') will provide a textual
progress report of the iteration.
See also FREQZ, FREQS, and INVFREQS.
Cross-Reference Information
This function calls
- any /tools/hpmatlab/toolbox/matlab/ops/any.m
- clc /tools/hpmatlab/toolbox/matlab/general/clc.m
- dir /tools/hpmatlab/toolbox/matlab/general/dir.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
- exp /tools/hpmatlab/toolbox/matlab/elfun/exp.m
- home /tools/hpmatlab/toolbox/matlab/general/home.m
- i /tools/hpmatlab/toolbox/matlab/elmat/i.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- isempty /tools/hpmatlab/toolbox/matlab/ops/isempty.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- max /tools/hpmatlab/toolbox/matlab/datafun/max.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
- polystab /tools/hpmatlab/toolbox/signal/polystab.m
- real /tools/hpmatlab/toolbox/matlab/elfun/real.m
- return /tools/hpmatlab/toolbox/matlab/lang/return.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
- sqrt /tools/hpmatlab/toolbox/matlab/elfun/sqrt.m
- while /tools/hpmatlab/toolbox/matlab/lang/while.m
- zeros /tools/hpmatlab/toolbox/matlab/elmat/zeros.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON