// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab // Copyright (C) INRIA - Serge Steer // // 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_i_p(i,j,s1,s2) //%lss_i_p(i,j,s1,s2) <=> s2(i,j)=s1 //! [lhs,rhs]=argn(0) if rhs==3 then s2=s1;s1=j; [a1,b1,c1,d1,x1,dom1]=s1(2:7) d2=s2; [n1,n1]=size(a1); if size(d2,2)>1 then b2=zeros(1,size(d2,2)) b2(i)=b1 c2=c1 elseif size(d2,1)>1 then c2=zeros(size(d2,1),1) c2(i)=c1 b2=b1 else error(msprintf(_("%s: Invalid syntax for a MIMO system.\n"),"%lss_i_p")); end d2(i)=d1; s=lsslist(a1,b2,c2,d2,x1,dom1) else [a1,b1,c1,d1,x1,dom1]=s1(2:7) d2=s2; [n1,n1]=size(a1); b2(1:n1,j)=b1 c2(i,1:n1)=c1 d2(i,j)=d1; s=lsslist(a1,b2,c2,d2,x1,dom1) end endfunction