Code covered by the BSD License  

Highlights from
Swap Spaces

5.0

5.0 | 1 rating Rate this file 6 Downloads (last 30 days) File Size: 1.53 KB File ID: #32056

Swap Spaces

by

 

04 Jul 2011 (Updated )

replaces spaces with underscores and vice versa

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
08 Sep 2011 Michael Goldstein

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

05 Jul 2011 Jan Simon

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
06 Jul 2011

Addtitional option to decide if spaces or underscores are replaced

Contact us