Communications Toolbox    
oct2dec

Convert octal numbers to decimal numbers

Syntax

Description

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.

Examples

The command below converts a 2-by-2 octal matrix.

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.

See Also

bi2de


  modmap poly2trellis