How can I establish a logical expression from given truth table using MATLAB?

1 回表示 (過去 30 日間)
Monir Hossain
Monir Hossain 2022 年 2 月 6 日
コメント済み: Stephen23 2022 年 6 月 2 日
I have a given truth table with input and correspomding output. Then what is the process to establish a logical expression (eg: AB+C'B') from the given truth tabe with MATLAB code.
  1 件のコメント
Stephen23
Stephen23 2022 年 6 月 2 日
Note that there are infinitely many logical expressions which will generate a given truth table. Which one do you want?

サインインしてコメントする。

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2022 年 2 月 6 日
編集済み: KALYAN ACHARJYA 2022 年 2 月 6 日
#For Matrix Multiplication
out=A*B+C'*B';
#For Array Multiplication
out=A*.B+C'*.B';

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by