Scilab-Branch-5.3-GIT
      
      
    Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
bool2s
論理値行列を0,1を値とする行列に変換する.
呼び出し手順
bool2s(x)
パラメータ
- x
- 論理値ベクトルまたは論理値行列または定数行列 
説明
x が論理値行列の場合,
    bool2s(x) は"true"値を1,	"false"値を0で置換した
	行列を返します.
x が "標準" 行列の場合,
    bool2s(x) は非ゼロ値を 1 に置換した行列を返します.
例
bool2s([%t %t %f %t]) bool2s([2.3 0 10 -1])
| << Boolean | Boolean | find >> |