summaryrefslogtreecommitdiff
path: root/273/CH25/EX25.23/ex25_23.sce
blob: af6d6a41c269881638bed2cc990157cd27906458 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc;clear;
//Example 25.23
//hexadecimal to binary conversion

//given values
X='7AB';//hexadecimal number

//calculation
x=hex2dec(X);//decimal equivalent
z=dec2bin(x);
disp(z,'binary number is ');