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

3 次查看(过去 30 天)
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 个)

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 CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by