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

Change language to:
English - Français - Português - Русский

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

Scilab help >> Scilab > Variables > predef

predef

変数の保護

呼出し手順

n = predef()
oldnew = predef(n)
oldnew = predef('all')
oldnew = predef('clear')
variables_name = predef('names')

説明

"oldest"変数を"protected"として定義するために使用されるユーティリティ関数. 保護されている変数は削除できません. これらの変数は'save'コマンドで保存されません. "oldest" はwho('get')で最後に現れます.

predef() は保護される変数の数を取得します.

predef('a[ll]') は 全ての変数を保護し,保護される変数の数の古い値と新しい値も返します.

predef('c[lear]') は最後の7変数以外の 保護を外し, 保護される変数の数の古い値と新しい値も返します.

predef(n) は, max(n,7)個の最後に定義された変数を保護し, 保護される変数の数の古い値と新しい値も返します.

注意:

変数 ans は,式が代入されない場合に自動的に定義され, predef('all')により保護されません.

保護される変数の数は,スタートアップファイル SCI/etc/scilab.startで設定されます. ユーザは独自の定義済みの変数を ユーザのスタートアップファイル SCIHOME/.scilab および SCIHOME/scilab.ini により設定することができます.

参照

  • clear — 変数を消去する
  • save — バイナリファイルに1個または複数の変数を保存する
  • ans — 答え
  • startup — スタートアップファイル
Report an issue
<< names Variables who >>

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 Oct 01 17:40:18 CEST 2012