Simple String Cleanup Utility

Version 1.0.0.0 (347 octets) par Rob Slazas
Simple utility function that cleans up stray characters and spaces from strings so they can be used
1,2K téléchargements
Mise à jour 12 sept. 2008

Aucune licence

Simple utility function that cleans up stray characters and spaces from strings so they can be used without causing errors or changes in format.

Function call removes anything not alphabetic or numeric, including underscore:

newstr = cleanstr(instr)

* I leave this function in my path and end up calling it pretty often. Works well with strings grabbed from filenames to be used in titles or legends on plots. Can be called embedded from those formatting statements.

Citation pour cette source

Rob Slazas (2024). Simple String Cleanup Utility (https://www.mathworks.com/matlabcentral/fileexchange/21419-simple-string-cleanup-utility), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2008a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Characters and Strings dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0