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

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ヘルプ >> Scilab > Control flow > pause

pause

中断モード, キーボード入力を待つ

説明

pauseモードに切り替えます; 関数のコードに挿入すると,pauseは関数の実行を中断し, pauseのレベル (例: -1->)を 示すプロンプト記号が表示がされます. この時,ユーザは新しいワークスペースにおり, より低いレベルの変数(特にその関数内の全ての変数)が全て利用可能となっています. コールしたワークスペースに戻るにはreturnを入力します.

このモードでは, [...]=return(...)は 引数の変数 (...) をコールしたワークスペースに [...]という名前の出力として返します. 一方, より低いレベルの変数は保護され, 修正することはできません.

pause はデバッグの際に非常に有用です.

このモードはコマンド "abort"により破棄することができます.

function c=foo(b)
a=42+b
disp("Thanks to the pause, you can investigate if ''a'' has the right value");
disp("Value can be changed too if needed.");
pause
c=a+2
endfunction

foo(2)

参照

  • halt — 実行を停止
  • return — リターンまたは復旧し,ローカルな変数をコピー
  • abort — 評価を中断する.
  • quit — Scilabを終了またはpauseレベルを減らす
  • whereami — カレントの命令コールツリーを表示
  • where — カレントの命令の呼び出しツリーを得る
  • sleep — suspend all code executions (console, scripts, callbacks,..)
Report an issue
<< if then else Control flow resume >>

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 Feb 12 23:12:39 CET 2018