bin2oct
Convert a binary string to an octal string.
Syntax
Section titled “Syntax”v = bin2oct(b, p)Description
Section titled “Description”Returns the octal representation of binary string b. Optional p zero-pads to that minimum length.
Example
Section titled “Example”bin2oct('1001') % '11'