how can i split the data of input text file

1 view (last 30 days)
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.

Accepted Answer

Walter Roberson
Walter Roberson on 4 May 2013
splittext = regexp( originaltext, '\W(is|for|in|on|under)\W', 'split' );

More Answers (1)

Pradeep kaur
Pradeep kaur on 5 May 2013
this code is not working. Nothing is display

Community Treasure Hunt

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

Start Hunting!