blob: a540b9453f9948806f70db2fe13de4ac8b9b0f63 (
plain)
1
2
3
4
5
6
|
//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
|