how can i split the data of input text file

1 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(1 个)

Pradeep kaur
Pradeep kaur 2013-5-5
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!

Translated by