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 个评论
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
2022-2-6
编辑:KALYAN ACHARJYA
2022-2-6
#For Matrix Multiplication
out=A*B+C'*B';
#For Array Multiplication
out=A*.B+C'*.B';
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!