1 2 3 4 5 6 7
//Ex19_12 Pg-962 clc oct='257'; //binary input dec=oct2dec(oct) //decimal output disp("The decimal equivalent of 257 is") disp(dec)