Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.1 - English

Change language to:
Français - 日本語 - Português

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Elementary Functions > typeof

typeof

object type

Calling Sequence

[t]=typeof(object)

Arguments

object

Scilab object

t

string

Description

t=typeof(object) returns one of the following strings:

"constant"

if object is a real or complex constant matrix.

"polynomial"

if object is a polynomial matrix.

"function"

if object is a function (Scilab code).

"handle"

if object is an handle.

"string"

if object is a matrix made of character strings.

"boolean"

if object is a boolean matrix.

"list"

if object is a list.

"rational"

if object is a rational matrix (transfer matrix).

"state-space"

if object is a state-space model (see syslin).

"sparse"

if object is a (real) sparse matrix.

"boolean sparse"

if object is a boolean sparse matrix.

"hypermat"

if object is an hypermatrix (N-dimension array with N >=3).

"st"

if object is a structure array.

"ce"

if object is a cell array.

the first string in the first list entry

if object is a tlist or mlist.

"fptr"

if object is a Scilab intrinsic (C or Fortran code).

"pointer"

if object is a pointer (See lufact).

"size implicit"

if object is a size implicit polynom used for indexing.

"library"

if object is function library.

"int8" or "uint8" or "int16" or "uint16" or "int32" or "uint32"

if object is a matrix of [unsigned] integers stored on 8, 16 or 32 bits. See int8)

Examples

typeof(1)
typeof(poly(0,'x'))

typeof(1/poly(0,'x'))
typeof(%t)

w=sprand(100,100,0.001);
typeof(w)
typeof(w==w)

deff('y=f(x)','y=2*x');
typeof(f)

L=tlist(['V','a','b'],18,'Scilab');
typeof(L)

typeof(corelib)

See Also

  • type — Returns the type of a variable
  • strings — Scilab Object, character strings
  • syslin — linear system definition
  • poly — polynomial definition
<< toeplitz Elementary Functions Linear Algebra >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Mar 03 10:59:36 CET 2011