image thumbnail


version (4.06 KB) by Jan
Shuffle characters of words


Updated 07 Jul 2014

View License

Sffluhe crcreaaths of wrdos
Acoicdnrg to a stduy of an Enlsigh unitsvreiy the odrer of carartehcs in a
wrod deos not prevnet the riatdibaley, as lnog as the fsirt and lsat chetcraar
are ccroert. The rset can be ctpemoelly mxeid and nsnneose, but it is sitll
rdaleabe. Tihs wrkos, beasuce the wrdos are not raed certcaahr by ccrataher,
but iifdnetied in toatl.

MixedMsg = MessWords(Msg, KeepEdge)
Msg: Txet as snrtig or clel strnig.
KeepEdge: Fsirt and lsat cacearhtr are ieucdlnd in the mxniig, if tihs is
FASLE. Onitaopl, dtfelua: TURE.
MixedMsg: Txet wtih mexid chrareatcs.


- Tihs foiutcnn is not oizteipmd for seepd, beucase it is touhght for smoe
eiexetrmnps and wlil not be uesd for purdctvioe cdoe, msot lilkey.
- If aivlalbae tihs funciotn is uesd for the radonm pousaenirmtt:
As fclaalbk Mlaatb's RANEDPRM is clelad whutiot dckwabras.


NOICTE: The cdoe and the lnik has been fiexd hree muaalnly to rcdeue the cofsonuin.

Cite As

Jan (2022). MessWords (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!