summaryrefslogtreecommitdiff
path: root/modules/overloading/macros/%lss_f_lss.sci
blob: 37840b7108034131b7ece337f749fda683ec3385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) INRIA
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution.  The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt

function [s]=%lss_f_lss(s1,s2)
    //  s=[s1;s2] in state-space

    [s1,s2]=sysconv(s1,s2)
    [a1,b1,c1,d1,x1,dom1]=s1(2:7)
    [a2,b2,c2,d2,x2]=s2(2:6)
    [n1,n1]=size(a1);[n2,n2]=size(a2)
    [p1,m1]=size(d1);[p2,m2]=size(d2)
    a1=[a1 0*ones(n1,n2);0*ones(n2,n1) a2]
    c1=[c1 0*ones(p1,n2);0*ones(p2,n1) c2]
    s=tlist(["lss","A","B","C","D","X0","dt"],a1,[b1;b2],c1,[d1;d2],[x1;x2],dom1)
endfunction