Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский
Scilab Help >> Scilab > Variables > who

who

listing of variables

Syntax

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

Arguments

scope

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

"scope" or "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, b] = (1, 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

  • whos — listing of variables in long form
  • who_user — listing of user's variables
  • macrovar — variables of function

History

VersionDescription
6.0.1 Add "scope" or "current" scope.
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Jul 20 11:10:40 CEST 2021