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