| Communications Toolbox | ![]() |
Convert octal numbers to decimal numbers
d = oct2dec(c)
d = oct2dec(c) converts an octal matrix c to a decimal matrix d, element by element. In both octal and decimal representations, the rightmost digit is the least significant.
The command below converts a 2-by-2 octal matrix.
d = oct2dec([12 144;0 25])
d =
10 100
0 21
For instance, the octal number 144 is equivalent to the decimal number 100 because 144 (octal) = 1*82 + 4*81 + 4*80 = 64 + 32+ 4 = 100.
| normlms | oqpskdemod | ![]() |
© 1994-2005 The MathWorks, Inc.