1 2 3 4 5 6 7 8 9 10 11 12 13 14
clear //Initializaton n='f851' //Hex Number //Calculation w=hex2dec(n) //Hex to Decimal Coversion w1 =dec2bin(w) //Result printf("\n Binary of f851 = %s",(w1))