1 2 3 4 5 6 7 8 9
//Ex19_24 Pg-969 clc x=bin2dec('11100') //1st input y=bin2dec('11010') //2nd input z=x+y //binary addition add=dec2bin(z) disp(" 11100 + 11010 = ") disp(add)