//Ex19_10 Pg-961 clc bin='1111'; //binary input dec=bin2dec(bin) //decimal output disp("(1) Binary number -> 1111") disp("Here we have 4 bits") disp("The decimal equivqlent is") disp(dec) bin='1111111'; //binary input dec=bin2dec(bin) //decimal output disp("(2) Binary number -> 1111111") disp("Here we have 7 bits") disp("The decimal equivqlent is") disp(dec)