File Exchange

image thumbnail

Swap Spaces

version 1.1.0.0 (1.53 KB) by Alexandra
replaces spaces with underscores and vice versa

0 Downloads

Updated 06 Jul 2011

View License

replaces spaces with underscores or underscores with spaces; useful for desciptions/titles and file names

Comments and Ratings (2)

Very helpful for basic adjustments to file- and title-names. Thank you!

Jan

It would be more useful, if the user can decide if the spaces are converted to underscores or the other way around. E.g. if I want a filename without spaces, a swapping does not create the wanted result in 50% of the cases.
STRREP is faster than REGEXPREP.

Updates

1.1.0.0

Addtitional option to decide if spaces or underscores are replaced

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags