//Example 24.4. convert hexadecimal number to decimal clc h=hex2dec(['4AB']) disp(h,"(i) hex 4AB = decimal") h=hex2dec(['23F']) disp(h,"(ii) hex 23F = decimal")