Numeric to Ordinal-String
- accepts a numeric array of any size,
- accepts a numeric array of any class (floating point, INTx or UINTx),
- returns a string array (not a character array!),
- is fully vectorized (no loops or ARRAYFUN calls are used or required),
- provides the correct ordinal suffixes for numeric values ending in 11, 12, or 13.
Citation pour cette source
Stephen23 (2024). Numeric to Ordinal-String (https://www.mathworks.com/matlabcentral/fileexchange/42833-numeric-to-ordinal-string), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Remerciements
Inspiré par : Number to Ordinal String Converter, ORDNUMSTR, Number to Scientific Prefix, Customizable Natural-Order Sort, Number to Words, Words to Number
A inspiré : Words to Number, Number to Words, Interactive Regular Expression Tool
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
2.2.1 | * Add more floating point testcases. |
||
2.2.0 | * Add 2nd output, with just the suffixes.
|
||
2.1.3 | * Add testcases. |
||
2.1.2 | * Update description. |
||
2.1.1 | * Update description. |
||
2.1.0 | * Add test cases.
|
||
2.0.4 | * Minor edits to Mfile help. |
||
2.0.3 | * Include test function.
|
||
2.0.2 | * Correct sreenshot |
||
2.0.1 | * Correct screenshot. |
||
2.0.0 | * Change to string array output.
|
||
1.5.2 | * Add error IDs. |
||
1.5.1 | * Added HTML documentation. Function unchanged. |
||
1.5.0.0 | * Improve documentation. |
||
1.4.0.0 | Added Acknowledgements |
||
1.3.0.0 | - Fix minor bug with int* and uint*. |
||
1.2.0.0 | - Improve function description, add acknowledgements. |
||
1.1.0.0 | - Fix minor bugs with -0, int* & uint* handling. |
||
1.0.0.0 |