I apparently don't know how to use the {}code button to format the question and I need help with this 3 variable logical AND operation
2 ビュー (過去 30 日間)
古いコメントを表示
function andResult = LogicalAND3(inputA, inputB, inputC)
% Assign threeInputAnd with the truth table outcomes for a
% 3 variable logical-and operation
andResult = [inputA], [inputB], [inputC];
end
2 件のコメント
per isakson
2017 年 10 月 11 日
編集済み: per isakson
2017 年 10 月 11 日
"I apparently don't know how to use the {}code button to format the question"
The requirements to show a block of text as code are
- the block shall be preceded by an empty line
- each line of the block shall be preceded by two extra spaces
- the block shall be followed by an empty line
The {}Code button adds those extra two spaces and the preceding empty line, but not the closing empty line. Steps
- type the block of text or copy&paste it from the editor
- select the block so that it's displayed in white on a blue background
- push the {}Code button
- make sure there is a closing empty line
採用された回答
KSSV
2017 年 10 月 11 日
function andResult = LogicalAND3(inputA, inputB, inputC)
% Assign threeInputAnd with the truth table outcomes for a
% 3 variable logical-and operation
andResult = inputA & inputB & inputC ;
end
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!