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


who

変数の一覧

呼出し手順

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

設定

scope

"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.

説明

who() は,カレントの変数名を表示します.

who('local') または who('get') は, 現在の変数の名前と使用されているメモリをバイト単位で返します.

who('global') は, グローバル変数の名前と使用されるメモリをバイト単位で返します.

who('sorted') は, アルファベット順に全ての変数を表示します.

[a, b] = (1, 2);
[name, mem] = who("local");
position = find(name=="a")
mem(position) // aにより使用される大きさ
position = find(name=="d") // []

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

参照

  • whos — 長い形式で変数のリストを得る
  • who_user — ユーザ変数の一覧
  • macrovar — 関数の変数

履歴

バージョン記述
6.0.1 Add "scope" or "current" scope.
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:
Tue Mar 07 09:28:39 CET 2023