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

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> Scilab > Variables > who

who

listagem de variáveis

Seqüência de Chamamento

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

Parâmetros

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.

Descrição

who exibe os nome de variáveis correntes.

who('local') ou who('get') retorna os nomes de variáveis correntes e a memória utilizada em palavras de dupla precisão.

who('global') retorna os nomes de variáveis globais e a memória utilizada em palavras de dupla precisão.

who('sorted') exibe todas as variáveis em ordem alfabética.

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);

Ver Também

History

VersãoDescrição
6.0.1 Add "scope" or "current" mode.
Report an issue
<< predef Variables who_user >>

Copyright (c) 2022-2023 (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:
Mon Jan 03 14:35:19 CET 2022