clear
変数を消去する
呼出し手順
clear a b c clear('a', 'b', 'c') clear(['a' 'b' 'c'])
引数
- a, b, c...
- 任意の型および大きさの変数, ただし,保護されていないこと 
説明
このコマンドは保護されていない変数を消去します.
            変数は環境から削除されます.
            clear はpredefで保護された
            変数以外の全ての変数を消去します.
            このため,2つのコマンド  predef(0) およびclear
            により全ての変数が削除されます.
通常,保護される変数は標準ライブラリとパーセント構文の変数です.
|  | 正しい構文は clear aおよびclear('a')であり,clear(a)ではないことに注意してください.a=[]はaを消去しませんが,aを空の行列にすることに注意してください. | 
If a name Var matches no variable, clear Var
            does nothing silently.
|  | clear()can be overloaded for anymlist("foo")type,
        by defining a%foo_clear()macro. It will be called either whenclearis explicitly applied to any mlist of this type, or implicitly
        when any mlist of this type is deleted when leaving the environment where it has been
        defined. | 
例
参照
- predef — 変数の保護
- clearglobal — グローバル変数を削除
- funcprot — Scilab関数保護モードを切替える
- who — 変数の一覧
- xmlDelete — XML文書を削除
履歴
| バージョン | 記述 | 
| 5.5.0 | 引数を文字列の行列とすることができるようになりました | 
| 6.0.0 | clearis now protected:
                  Assignments likeclear=1are no longer possible. | 
| 6.1.0 | clearbecomes overloadable for anymlist("foo"), with%foo_clear(). | 
| Report an issue | ||
| << checkNamedArguments | Variables | clearglobal >> |