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