Number to Ordinal String Converter

Converts an integer into its ordinal string.

You are now following this Submission

This function turns a number into an ordinal string, ie 1 becomes 'first', 2 becomes 'second'. After 'twentieth', the number is used with the appropriate 'st, 'nd', 'rd', or 'th'. Useful for instructionary dialog boxes, etc.

Cite As

Bill Higley (2026). Number to Ordinal String Converter (https://nl.mathworks.com/matlabcentral/fileexchange/1930-number-to-ordinal-string-converter), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: ORDNUMSTR, Numeric to Ordinal-String

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0