blob: 4418bc2b9c4a71260d3a9280e3d79e23d52e2d41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// example 1.8(a)//
//conversion hexadecimal number to octal number //
clc
//clears the screen //
clear
// clears already existing variables //
x= hex2dec ('2F')
//hexadecimal to decimal conversion //
a= dec2oct (x)
//decimal to octal conversion //
disp ('conversion of given hexadecimal no to its octal form results in :' )
disp (a)
//answer in octal form//
|