1 2 3 4 5 6 7
//Ex19_2 Pg-958 clc bin='11101'; //binary input dec=bin2dec(bin) //decimal output disp("The decimal equivqlent of 11101 is") disp(dec)