divide text into smaller blocks text by . or enter
Show older comments
if i want to separate content of a text into smaller parts according to "new line" or "."
how to do that?
such as 2 paragraphs , 1*1 matrix:
["Today is a good day. Mom cooks breakfast for us.
But I find out only my sister is served."]
into 2*1 matrix ,divided according to being paragraphed :
["Today is a good day. Mom cooks breakfast for us.";
"But I find out only my sister is served."]
or 3*1 matrix, divided according to being paragraphed and period"." :
["Today is a good day." ;
"Mom cooks breakfast for us.";
"But I find out only my sister is served."]
thanks for helping.
Accepted Answer
More Answers (0)
Categories
Find more on Labels and Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!