Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

iptnum2ordinal

Convert positive integer to ordinal character vector

Syntax

ordstr = iptnum2ordinal(number)

Description

ordstr = iptnum2ordinal(number) converts the positive integer number to the ordinal character vector ordstr.

Examples

The following example returns the character vector 'fourth'.

str = iptnum2ordinal(4)

The following example returns the character vector '23rd'.

str = iptnum2ordinal(23)

Introduced before R2006a

Was this topic helpful?