//Chapter 23, Example 23.19 clc //Initialisation x="A013" //hex number to be convert //Calculation x1=hex2dec(x) //conversion to decimal //Results printf("Decimal of A013 = %d",x1)