Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this 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?