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))