<< predef Variables who_user >>

Scilab Help >> Scilab > Variables > who

who

listing of variables

Syntax

who
who()
[names, mem] = who([mode], [sorted])

Arguments

mode

local/get: list visible variables (not only in current function).

scope/current: list variables in the current scope/function.

global: list global variables.

sorted

Boolean value to specify if output must be sort in alphabetical order.

names

String matrix with variable names.

mem

Double matrix with variable used memory in bytes.

Examples

a=1;
b=2;
[name, mem]=who("local");
position=find(name=="a")
mem(position) // Size used by a
position=find(name=="d") // []

function foo(a, b)
    disp(who("scope", "sorted"))
endfunction

foo(1,2);

See also

History

VersionDescription
6.0.1 Add "scope" or "current" mode.

Report an issue
<< predef Variables who_user >>