// 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_c_lss(s1,s2) // u=[u1;u2] y=y1+y2 //operation 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]; b1=[b1 0*ones(n1,m2);0*ones(n2,m1) b2]; s=tlist(["lss","A","B","C","D","X0","dt"],a1,b1,[c1 c2],[d1 d2],[x1;x2],dom1); endfunction