1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
4 // Copyright (C) 2012 - 2016 - Scilab Enterprises
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.
13 function [tree]=sci_exist(tree)
15 // Conversion function for Matlab exist()
16 // Input: tree = Matlab funcall tree
17 // Ouput: tree = Scilab equivalent for tree
18 // Emulation function: mtlb_exist()
20 no_equiv(gettext("Matlab exist(), mtlb_exist() is called."))
22 set_infos(gettext("mtlb_exist() is just a partial emulation of Matlab exist() function."),2)
24 scitree.name="mtlb_exist"
26 tree.lhs(1).dims=list(1,1)
27 tree.lhs(1).type=Type(Double,Real)