1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 2// Copyright (C) INRIA 3// 4// Copyright (C) 2012 - 2016 - Scilab Enterprises 5// 6// This file is hereby licensed under the terms of the GNU GPL v2.0, 7// pursuant to article 5.3.4 of the CeCILL v.2.1. 8// This file was originally licensed under the terms of the CeCILL v2.1, 9// and continues to be available under such terms. 10// For more information, see the COPYING file which you should have received 11// along with this program. 12function M=%b_i_sp(varargin) 13 14 [lhs,rhs]=argn(0) 15 M=varargin(rhs) 16 N=bool2s(varargin(rhs-1))//inserted matrix 17 if rhs<=4 then 18 if rhs==3 then 19 M(varargin(1))=N 20 else 21 M(varargin(1),varargin(2))=N 22 end 23 else 24 error(msprintf(_("%s: Multidimensional sparse matrices are not handled.\n"),"%b_i_sp")); 25 end 26 27endfunction 28