1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 // This file must be used under the terms of the CeCILL.
5 // This source file is licensed as described in the file COPYING, which
6 // you should have received as part of this distribution. The terms
7 // are also available at
8 // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10 function [tf]=typeof(object)
11 if exists("object","local")==0 then
12 error(msprintf(_("%s: Wrong value for input argument #%d: Defined variable expected.\n"),"typeof", 1))
15 case 1 then tf='constant';
16 case 2 then tf='polynomial';
17 case 4 then tf='boolean';
18 case 5 then tf='sparse';
19 case 6 then tf='boolean sparse';
20 case 7 then tf='Matlab sparse';
30 tf=tf+'int'+string(8*it);
34 case 9 then tf='handle';
35 case 10 then tf='string';
36 case 11 then tf='function';
37 case 13 then tf='function';
38 case 14 then tf='library';
39 case 128 then tf='pointer';
40 case 129 then tf='size implicit';
41 case 15 then tf='list';
62 k=find(tp==type(object))