Number to Ordinal String Converter
1.9K Downloads
Updated 9 Jul 2002
No License
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 (2023). Number to Ordinal String Converter (https://www.mathworks.com/matlabcentral/fileexchange/1930-number-to-ordinal-string-converter), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: ORDNUMSTR, Numeric to Ordinal-String
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |