Scilab 5.5.2
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
quit
Terminates Scilab or decreases the pause level
Calling Sequence
quitDescription
The quit command has two different meanings depending on the calling context:
- If there is no
pauseactive, then the
quitcommand makes Scilab terminate, even if the command is called inside a function.- If there is a
pauseactive, then the
quitcommand makes abort of the instructions started at this pause level and terminates the current pause level.
Examples
// quit Scilab function foo(x) if x then quit end endfunction foo(%t) //quits scilab //terminate instruction started in a pause context function foo(x) if x then quit end endfunction pause foo(%t) //returns at the main prompt level function foo1(x) mprintf('P1\n') if x then pause mprintf('P2\n') end mprintf('P3\n') endfunction foo1(%t) //enter quit at the following prompt
See Also
| Report an issue | ||
| << perl | Scilab | scilab >> |