blob: 8a7c6d81f1298708f1a727449ba48869ba7c28b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Chapter-15, Example 15.2, Page 492
//=============================================================================
clc
clear
//INPUT DATA
x1=444;//in octal form
x2=237;//in octal form
x3=120;//in octal form
//CALCULATIONS
x1=base2dec(['444','237','120'],8)//converting octal to decimal
disp(x1);
//=================================END OF PROGRAM=======================================================================================================
|