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
 - sethomedirectory
 - stacksize
 - startup
 - symbols
 - testmatrix
 - type
 - typename
 - user
 - varn
 - ver
 - warning
 - what
 - where
 - whereami
 - who
 - who_user
 - whos
 - with_atlas
 - with_gtk
 - with_javasci
 - with_macros_source
 - with_module
 - with_pvm
 - with_texmacs
 - with_tk
 
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
boolean
Scilab オブジェクト, 論理値(boolean)変数および演算子 & | ~
説明
論理値(boolean)変数の値は  %T (意味: "true") または
	 %F (意味: "false") です.
  これらの変数は,論理値の行列を定義する際に通常の構文として使用可能です.
	論理値行列は要素の展開/挿入/結合など通常の行列と同様に操作することができます.
	他の一般的な処理(+, *, -, ^,など)は
	論理値行列では定義されないことに注意してください.
	以下の3種類の特別な演算子が論理値行列に関して定義されています:
- ~b
 は論理値
b(行列)の要素毎の否定です.- b1&b2
 は
b1およびb2(行列)の 要素毎の論理積(and) です.- b1|b2
 は
b1およびb2(行列)の 要素毎の論理和(or) です.- 論理値変数は行列またはベクトルの添え字として使用できます.
 例えば,
a([%T,%F,%T],:)は,aの1行目と3行目 からなる部分行列を返します. 論理値の疎行列もサポートされています.
例
[1,2]==[1,3] [1,2]==1 a=1:5; a(a>2)
| << banner | Scilab | break >> |