Returns the type of a variable
[i]=type(x)
:x Scilab object : :i integer :
type(x) returns an integer which is the type of x as following:
:1 real or complex matrix of double. : :2 polynomial matrix. : :4 boolean matrix. : :5 `sparse matrix`_. : :6 sparse boolean matrix. : :7 Matlab sparse matrix : :8 matrix of integers stored on 1 (int8), 2 (int16) or 4 (int32)
bytes.
: :9 matrix of graphic handles. : :10 matrix of character strings. : :11 un-compiled function (Scilab code). Function created with
deff with argument ‘n’.
: :13 compiled function (Scilab code). : :14 function library. : :15 list. : :16 typed list (`tlist`_). : :17 matrix oriented typed list (mlist). : :128 pointer (Use case: lufact). : :129 size implicit polynomial used for indexing. : :130 built-in Scilab function, called also gateway (C, C++ or
Fortran code).
:
Please note that, for some variables, type will return tlist or mlist due to the internal data structure. This is the case of rational , state-space , hypermat and struct . Please considering the use of typeof instead.