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 Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by