I have a string:
sen = '0.31431 0.64431 Using drugs is not cool Speaker2';
I am trying to write code that will generate:
cell = {'0.31431','0.64431', 'Using drugs is not cool', 'Speaker2'};
The problem is that I don't want to use the number of words in 'Using drugs is not cool' because these will change in other examples.
I tried:
output = sscanf(sen,'%s %s %c %Speaker%d');
But it doesn't work as desired.