Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.1 - Русский

Change language to:
English - Français - 日本語 - Português -

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> CACSD > lin

lin

linearization

Calling Sequence

[A,B,C,D]=lin(sim,x0,u0)
[sl]=lin(sim,x0,u0)

Arguments

sim

function

x0, u0

vectors of compatible dimensions

A,B,C,D

real matrices

sl

syslin list

Description

linearization of the non-linear system [y,xdot]=sim(x,u) around x0,u0.

sim is a function which computes y and xdot.

The output is a linear system (syslin list) sl or the four matrices (A,B,C,D)

For example, if ftz is the function passed to ode e.g.

[zd]=ftz(t,z,u)

and if we assume that y=x

[z]=ode(x0,t0,tf,list(ftz,u) compute x(tf).

If simula is the following function:

deff('[y,xd]=simula(x,u)','xd=ftz(tf,x,u); y=x;');

the tangent linear system sl can be obtained by:

[A,B,C,D]=lin(simula,z,u)
sl = syslin('c',A,B,C,D,x0)

Examples

deff('[y,xdot]=sim(x,u)','xdot=[u*sin(x);-u*x^2];y=xdot(1)+xdot(2)')
sl=lin(sim,1,2);

See Also

  • external — объект Scilab'а, внешняя функция или подпрограмма
  • derivat — rational matrix derivative
Report an issue
<< lft CACSD linf >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Apr 02 17:37:55 CEST 2013