blob: e5ca65811ac5db0e1363a2054c6aef3da7c3e3a8 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc;clear;
//Example 25.21
//hexadecimal to decimal conversion
//given values
X='AC5';//hexadecimal number
//calculation
x=hex2dec(X);//decimal equivalent
disp(x,'decimal number is ')
|