# dec2base

Convert decimal integer to its base-

representation*n*

## Description

`baseStr = dec2base(`

returns a base-`D`

,`n`

)

representation of the decimal
integer *n*`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`

.

## Examples

## Input Arguments

## Extended Capabilities

**Introduced before R2006a**