Scilab 5.3.0
- Scilab Online Help
- Scilab
- Scilab keywords
- TMPDIR
- abort
- add_demo
- argn
- banner
- boolean
- break
- clear
- clearfun
- clearglobal
- comp
- continue
- debug
- delbpt
- dispbpt
- edit
- errcatch
- errclear
- error
- error_table
- exists
- exit
- external
- extraction
- format
- funcprot
- funptr
- getdebuginfo
- getmd5
- getmemory
- getmodules
- getos
- getscilabmode
- getshell
- getvariablesonstack
- getversion
- gstacksize
- ieee
- insertion
- intppty
- inv_coeff
- iserror
- isglobal
- lasterror
- macr2lst
- macr2tree
- matrices
- matrix
- mode
- mtlb_mode
- names
- newfun
- null
- pause
- perl
- poly
- predef
- quit
- rational
- readgateway
- resume
- sciargs
- scilab
- setbpt
- stacksize
- startup
- symbols
- testmatrix
- type
- typename
- user
- varn
- ver
- warning
- what
- where
- whereami
- who
- who_user
- whos
- with_atlas
- with_javasci
- with_macros_source
- with_module
- with_pvm
- with_texmacs
- with_tk
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
quit
Terminates Scilab or decreases the pause level
Calling Sequence
quit
Description
The quit
command has two different meanings depending on the calling context:
- If there is no
pause
active, then the
quit
command makes Scilab terminate, even if the command is called inside a function.- If there is a
pause
active, then the
quit
command makes aborts the instructions started at this pause level ando 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
<< predef | Scilab | rational >> |