Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.1 - 日本語

Change language to:
English - 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 >> Matlab to Scilab Conversion Tips > Matlab-Scilab equivalents > I > isa (Matlab function)

isa (Matlab function)

Detect an object of a given type

Matlab/Scilab equivalent

There is no equivalent function for Matlab isa function in Scilab but it can be replaced by equivalent syntaxes as shown is examples.

Equivalence table

Matlab

Scilab

a = isa(x,"logical")

a = type(x)==4;

b = isa(x,"char")

b = type(x)==10;

c = isa(x,"numeric")

c = or(type(x)==[1,5,8]);

d = isa(x,"int8")

d = typeof(x)=='int8';

e = isa(x,"uint8")

e = typeof(x)=='uint8';

f = isa(x,"int16")

f = typeof(x)=="int16";

g = isa(x,"uint16")

g = typeof(x)=="uint16";

h = isa(x,"int32")

h = typeof(x)=="int32";

k = isa(x,"uint32")

k = typeof(x)=="uint32";

l = isa(x,"single")

l = type(x)==1;

m = isa(x,"double")

m = type(x)==1;

n = isa(x,"cell")

n = typeof(x)=="ce";

o = isa(x,"struct")

o = typeof(x)=="st";

p = isa(x,"function_handle")

p = type(x)==13;

q = isa(x,"sparse")

q = type(x)==5;

r = isa(x,"lti")

r = typeof(x)=="state-space";

Report an issue
<< inv (Matlab function) I iscell (Matlab function) >>

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:
Tue Apr 02 17:37:34 CEST 2013