~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/signal/frfit.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH frfit 1 "April 1993" "Scilab Group" "Scilab Function"
2
 
.so ../sci.an
3
 
.SH NAME
4
 
frfit - frequency response fit
5
 
.SH CALLING SEQUENCE
6
 
.nf
7
 
sys=frfit(w,fresp,order)
8
 
[num,den]=frfit(w,fresp,order)
9
 
sys=frfit(w,fresp,order,weight)
10
 
[num,den]=frfit(w,fresp,order,weight)
11
 
.fi
12
 
.SH PARAMETERS
13
 
.TP 10
14
 
w
15
 
: positive real vector of frequencies (Hz)
16
 
.TP
17
 
fresp
18
 
: complex vector of frequency responses (same size as \fVw\fR)
19
 
.TP
20
 
order
21
 
: integer (required order, degree of \fVden\fR)
22
 
.TP
23
 
weight
24
 
: positive real vector (default value \fVones(w)\fR).
25
 
.TP
26
 
num,den
27
 
: stable polynomials
28
 
.SH DESCRIPTION
29
 
\fVsys=frfit(w,fresp,order,weight)\fR returns a bi-stable transfer function
30
 
\fVG(s)=sys=num/den\fR, of of given \fVorder\fR such that 
31
 
its frequency response \fVG(w(i))\fR matches \fVfresp(i)\fR, i.e.
32
 
\fVfreq(num,den,%i*w)\fR should be close to \fVfresp\fR.
33
 
\fVweight(i)\fR is the weight given to \fVw(i)\fR.
34
 
.SH EXAMPLE
35
 
.nf
36
 
w=0.01:0.01:2;s=poly(0,'s');
37
 
G=syslin('c',2*(s^2+0.1*s+2), (s^2+s+1)*(s^2+0.3*s+1));
38
 
fresp=repfreq(G,w);
39
 
Gid=frfit(w,fresp,4);
40
 
frespfit=repfreq(Gid,w);
41
 
bode(w,[fresp;frespfit])
42
 
.fi
43
 
.SH SEE ALSO
44
 
frep2tf, factors, cepstrum, mrfit, freq, calfrq
45
 
 
46
 
 
47