how can i split the data of input text file

i want to generate a text watermark. for that i am input a text data and need to split the text when preposition(like: is, for, in nd many more) arrived.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 4 Mai 2013

0 Stimmen

splittext = regexp( originaltext, '\W(is|for|in|on|under)\W', 'split' );

Weitere Antworten (1)

Pradeep kaur
Pradeep kaur am 5 Mai 2013

0 Stimmen

this code is not working. Nothing is display

Kategorien

Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by