//Example 1.11 Conversion from decimal number to Hexadecimal number. clc; x = 746; z = dec2hex(x); //hexadecimal equivalent of decimal number disp('The hexadecimal number is = '); disp(z) // answer in hexadecimal form