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

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

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

Scilab help >> 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 — Scilab オブジェクト, 論理値(boolean)変数および演算子 & | ~
  • find — 論理値ベクトルまたは行列のtrue要素の添え字を見つける
<< Boolean Boolean find >>

Copyright (c) 2022-2023 (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:
Thu Mar 03 11:00:59 CET 2011