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.

output::ordinal

Ordinal numbers

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Syntax

output::ordinal(i)

Description

output::ordinal converts an integer to the corresponding english ordinal number. The return value is a string and can be used in messages.

Examples

Example 1

Convert some numbers to the corresponding english ordinal string:

map([0, 1, 2, 3, 4, 22, 134, 2001], output::ordinal)

Parameters

i

An integer number

Return Values

String with the English ordinal number

See Also

MuPAD Functions

Was this topic helpful?