1 2 3 4 5 6 7 8
//Ex19_18 Pg-965 clc hex='9AF' //hexadecimal input dec=hex2dec(hex) //decimal output bin=dec2bin(dec) //binary output disp("The binary equivalent of 9AF is") disp(bin)