Convert decimal number to character array representing base-N number

`baseStr = dec2base(`

returns a base-`D`

,`n`

)`n`

representation of the number `D`

. The
output argument `baseStr`

is a character array that represents digits using
numeric characters and, when `n`

is greater than 10, letters. For example,
if `n`

is 12, then `dec2base`

represents the numbers 9,
10, and 11 using the characters `'9'`

, `'A'`

, and
`'B'`

, and represents the number 12 as the character sequence
`'10'`

.

If `D`

is a numeric vector, matrix, or multidimensional array, then
`baseStr`

is a two-dimensional character array. Each row of
`baseStr`

represents an element of `D`

.