blob: 30eaf0661a8d9e97c76e28b4508b3b898f7511f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// example 1.7(b) //
//conversion of binary to hexadecimal //
clc
//clears the screen //
clear
//clears already existing variables //
x= bin2dec ('1011001110' )
// binary to decimal conversion //
a= dec2hex (x)
//decimal to hexadecimal conversion //
disp ('conversion of given binary number to its hexadecimal form is : ')
disp (a)
// answer in hexadecimal form//
|