clc clear disp("Example 8.17") printf("\n") disp("convert the following hexadecimael numbers to decimal") disp("a)FACE b)31C c)CAD") //this progra, converts only integer part to decimal Hdec='FACE' dec=hex2dec(Hdec); printf("decimal=%d",dec)