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.

 採用された回答

Walter Roberson
Walter Roberson 2013 年 5 月 4 日

0 投票

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

その他の回答 (1 件)

Pradeep kaur
Pradeep kaur 2013 年 5 月 5 日

0 投票

this code is not working. Nothing is display

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by