Convert octal 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.
Convert a 2-by-2 octal matrix its decimal equivalent.
d = oct2dec([12 144;0 25])
The octal number 144 is equivalent to 100 because
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries