Logical operators and arrays?

Logical operators and arrays: 3-input and truth table Given three 1D arrays (inputA, inputB, inputC), assign 1D array andResult with the outcomes of a 3 variable logical-AND operation. Ex: If inputA is [0, 0, 1], inputB is [0, 1, 1], and inputC is [1, 1, 1], then andResult is [0, 0, 1]

回答 (1 件)

KSSV
KSSV 2016 年 10 月 13 日

8 投票

A = [0 0 1] ;
B = [0 1 1] ;
C = [1 1 1] ;
R = A & B & C

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

質問済み:

2016 年 10 月 13 日

回答済み:

2016 年 10 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by