How to split sentence?

4 次查看(过去 30 天)
Balkar Singh
Balkar Singh 2020-10-26
评论: Balkar Singh 2020-10-27
cover_str = 'Great things in business done by one person. They done by a team of people.'
I want to split the above string into two sentences like
s1='Great things in business done by one person'.
s2='They done by a team of people'.
How can i do the above process in Matlab.
With regards.

采纳的回答

KSSV
KSSV 2020-10-26
s = strsplit(cover_str,'.')
  9 个评论
KSSV
KSSV 2020-10-26
Read about strfind.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile 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