- Scilab help
- Scilab
- Scilab keywords
- TMPDIR
- abort
- add_demo
- argn
- banner
- boolean
- break
- clear
- clearfun
- clearglobal
- comp
- continue
- debug
- delbpt
- dispbpt
- edit
- errcatch
- errclear
- error
- error_table
- exists
- exit
- external
- extraction
- format
- funcprot
- funptr
- getdebuginfo
- getmd5
- getmemory
- getmodules
- getos
- getscilabmode
- getshell
- getvariablesonstack
- getversion
- gstacksize
- ieee
- insertion
- intppty
- inv_coeff
- iserror
- isglobal
- lasterror
- macr2lst
- macr2tree
- matrices
- matrix
- mode
- mtlb_mode
- names
- newfun
- null
- pause
- perl
- poly
- predef
- quit
- rational
- readgateway
- resume
- sciargs
- scilab
- setbpt
- stacksize
- startup
- symbols
- testmatrix
- type
- typename
- user
- varn
- ver
- warning
- what
- where
- whereami
- who
- who_user
- whos
- with_atlas
- with_javasci
- with_macros_source
- with_module
- with_pvm
- with_texmacs
- with_tk
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
type
Returns the type of a variable
Calling Sequence
[i]=type(x)
Arguments
- x
Scilab object
- i
integer
Description
type(x)
returns an integer which is the type of x
as following :
1 : real or complex constant matrix.
2 : polynomial matrix.
4 : boolean matrix.
5 : sparse matrix.
6 : sparse boolean matrix.
7 : Matlab sparse matrix.
8 : matrix of integers stored on 1 2 or 4 bytes.
9 : matrix of graphic handles.
10 : matrix of character strings.
11 : un-compiled function (Scilab code).
13 : compiled function (Scilab code).
14 : function library.
15 : list.
16 : typed list (tlist).
17 : matrix oriented typed list (mlist).
128 : pointer (See lufact).
129 : size implicit polynomial used for indexing.
130 : Scilab intrinsic (C or Fortran code).
<< testmatrix | Scilab | typename >> |