matlab code for half adder
39 views (last 30 days)
Show older comments
SHOBA MOHAN on 2 Apr 2017
function [(d,c)] = HA((a,b)) %UNTITLED Summary of this function goes here % Detailed explanation goes here a = logical(); b = logical(); c= a&b; d= xor (a,b); while running the code i got only one output but i need value for c and d. while using this function into full adder it gives "Subscripted assignment dimension mismatch". suggest me to overcome this issue.
rohan ch on 27 Feb 2020
Edited: rohan ch on 27 Feb 2020
A=input('enter the input');
B=input('enter the input');
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!