1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) INRIA -
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 <refentry version="5.0-subset Scilab" xml:id="inistate" xml:lang="en"
14 xmlns="http://docbook.org/ns/docbook"
15 xmlns:xlink="http://www.w3.org/1999/xlink"
16 xmlns:svg="http://www.w3.org/2000/svg"
17 xmlns:ns4="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML"
19 xmlns:db="http://docbook.org/ns/docbook">
21 <pubdate>$LastChangedDate$</pubdate>
25 <refname>inistate</refname>
27 <refpurpose>Estimates the initial state of a discrete-time
32 <title>Calling Sequence</title>
34 <synopsis>X0 = inistate(SYS,Y,U,TOL,PRINTW)
35 X0 = inistate(A,B,C,Y,U);
38 [x0,V,rcnd] = inistate(SYS,Y,U,TOL,PRINTW)</synopsis>
42 <title>Parameters</title>
49 <para>given system, syslin(dt,A,B,C,D)</para>
57 <para>the output of the system</para>
65 <para>the input of the system</para>
73 <para>TOL is the tolerance used for estimating the rank of matrices.
74 If TOL > 0, then the given value of TOL is used as a lower bound
75 for the reciprocal condition number.</para>
77 <para>Default: prod(size(matrix))*epsilon_machine where
78 epsilon_machine is the relative machine precision.</para>
86 <para>PRINTW is a switch for printing the warning messages.</para>
93 <para>1: print warning messages;</para>
101 <para>0: do not print warning messages.</para>
106 <para>Default: PRINTW = 0.</para>
114 <para>the estimated initial state vector</para>
122 <para>orthogonal matrix which reduces the system state matrix A to a
123 real Schur form</para>
131 <para>estimate of the reciprocal condition number of the coefficient
132 matrix of the least squares problem solved.</para>
139 <title>Description</title>
141 <para>inistate Estimates the initial state of a discrete-time system,
142 given the (estimated) system matrices, and a set of input/output
145 <para>X0 = inistate(SYS,Y,U,TOL,PRINTW) estimates the initial state X0 of
146 the discrete-time system SYS = (A,B,C,D), using the output data Y and the
147 input data U. The model structure is :</para>
150 x(k+1) = Ax(k) + Bu(k), k >= 1,
151 y(k) = Cx(k) + Du(k),
154 <para>The vectors y(k) and u(k) are transposes of the k-th rows of Y and
155 U, respectively.</para>
157 <para>Instead of the first input parameter SYS (an syslin object),
158 equivalent information may be specified using matrix parameters, for
159 instance, X0 = inistate(A,B,C,Y,U); or X0 = inistate(A,C,Y);</para>
161 <para>[x0,V,rcnd] = inistate(SYS,Y,U,TOL,PRINTW) returns, besides x0, the
162 orthogonal matrix V which reduces the system state matrix A to a real
163 Schur form, as well as an estimate of the reciprocal condition number of
164 the coefficient matrix of the least squares problem solved.</para>
168 <title>See Also</title>
170 <simplelist type="inline">
171 <member><link linkend="findBD">findBD</link></member>
173 <member><link linkend="findx0BD">findx0BD</link></member>