Good day.
Here is an example of a piece of literate I want to divide up:
str = ["1 This is sentence one of verse one, "+ ...
&qu
You only need a little bit of string manipulation:
>> c=convertStringsToChars(str);
>> splitstring = split(str,c(1));
>> splitstring = splitstring(strlength(splitstring) > 0);
>> formattedstring = string(1:length(splitstring)).' + " " + c(1) + splitstring
formattedstring =
2×1 string array
"1 1 This is sentence one of verse one, 2 This is sentence one of verse two. 3 This is sentence two of verse three; "
"2 1 This is sentence three of verse one? 2 This is sentence four of verse two, 3 this is sentence four but verse three!"