Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский

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

and

呼び出し手順

```b=and(A)

b=and(A,'*')

b=and(A,'r')

b=and(A,1)

b=and(A,'c')

b=and(A,2)```

説明

`and(A)` は, 論理値行列`A`の 要素の論理積(AND)です. `A`の全エントリが `%T` である場合にのみ `and(A)``%T` ("true") となります.

`and([])``%T`を返します.

`y=and(A,'r')` (または, 等価な `y=and(A,1)`) は行方向の論理積です. 行ベクトル `y` の各エントリに, `x`の各行の論理積を返します. (この and は次のように行添え字に関して行われます : `y(j)= and(A(i,j),i=1,m)`).

`y=and(A,'c')` (または, 等価な `y=and(A,2)`) は列方向の論理積です. 列ベクトル`y`の各エントリに, `x`の各列の論理積を返します. 返します. (このandは次のように列添え字に関して行われます: `y(i)= and(A(i,j),j=1,n)`)

例

```A = [];
and(A)

A = %T(ones(1, 3));
and(A)

A = %F(ones(1, 3));
and(A)

A = %T(ones(1, 3));
and(A, '*')
and(A, 'c')
and(A, 2)
and(A, 'r')
and(A, 1)```

Comments

Add a comment:
Please login to comment this page.

 Report an issue << IsAScalar Elementary Functions & >>

 Scilab EnterprisesCopyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Thu Oct 02 13:58:22 CEST 2014