File Exchange

image thumbnail

Simple String Cleanup Utility

version 1.0 (385 Bytes) by

Simple utility function that cleans up stray characters and spaces from strings so they can be used

1 Download

Updated

No License

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.

Comments and Ratings (0)

MATLAB Release
MATLAB 7.6 (R2008a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video