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

Change language to:
English - Français - Português

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab manual >> Boolean > bool2s

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 >>

Copyright (c) 2022-2024 (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:
Wed Jan 26 16:25:13 CET 2011