Simple String Cleanup Utility
by Rob Slazas
11 Sep 2008
(Updated 12 Sep 2008)
Simple utility function that cleans up stray characters and spaces from strings so they can be used
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7.6 (R2008a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com