Case Converter

Versione 1.0.0.0 (2,58 KB) da Skynet
Converts character string case to title, sentence, toggle, random, upper, or lower case.
2,2K download
Aggiornato 10 giu 2005

Visualizza la licenza

This function uses mostly the 'upper' and 'lower' functions to convert a text string to additional case types including 'Title Case', 'Sentence case', 'tOGGLE cASE', and 'RaNDoMizEd cASe'.

Type 'help caseconvert' for usage details.

Examples:

caseconvert('sample text','title') returns 'Sample Text'
caseconvert('Sample Text','toggle') returns 'sAMPLE tEXT'

caseconvert({'new york' 'california'},'randomized')
returns {'neW yoRk' 'CAlIFORnIA'}

caseconvert({'This Is A Test.' 'Matlab'},{'sentence' 'upper'})
returns {'This is a test.' 'MATLAB'}

[Please subscribe to this file if you use it, so you can be notified of updates.]

Cita come

Skynet (2024). Case Converter (https://www.mathworks.com/matlabcentral/fileexchange/6275-case-converter), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R14SP1
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Characters and Strings in Help Center e MATLAB Answers
Riconoscimenti

Ispirato: changeCase(S, caseType)

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0

Made a few minor changes as suggested by M-Lint.