Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2026.0.0 - Português


isa

checks variable type

Syntax

status = isa(var, type)

Arguments

var

a Scilab variable.

type

A string representing the variable type.

status

Boolean: %t if var isa type. otherwise %f

Description

type can be of the following value:

"double", "constant", "string",

"int8", "int16", "int32", "int64",

"uint8", "uint16", "uint32", "uint64",

"int", "integer", "signed", "unsigned",

"bool", "boolean", "poly", "polynom", "polynomial",

"list", "tlist", "mlist", "sparse", "bsparse", "booleansparse",

"lib", "library", "function", "fptr", "builtin",

"ce", "cell", "classdef", "object"

Examples

isa([1 2 3], "double") // %T
isa([1 2 3], "string") // %F
isa(["1" "2" "3"], "string") // %T

isa(int8(1), "int") // %T
isa(int8(1), "integer") // %T
isa(int8(1), "signed") // %T
isa(int8(1), "unsigned") // %F

t = table([1 2 3]', ["1" "2" "3"]');
isa(t, "mlist") // %T
isa(t, "table") // %T

isa(cos, "fptr") // %T
isa(cos, "function") // %T
isa(cos, "builtin") // %T

isa(cosd, "function") // %T
isa(cosd, "builtin") // %F

classdef test, end

isa(test, "classdef") // %T
isa(test(), "object") // %T
isa(test(), "test") // %T

See also

  • typeof — tipo do objeto
  • type — tipo de variável

History

VersãoDescrição
2026.0.0 isa introduction.
Report an issue
<< hypermatrices types Lambda functions >>

Copyright (c) 2022-2025 (Dassault Systèmes S.E.)
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 Oct 16 09:15:20 CEST 2025