Please post the input in valid Matlab syntax. If matters if this is a cell string, or if the lines are separated by CHAR(10) linebreaks, or if they are not separated, or if this "string" is written to a file. Does the string contain a blank line after each line of text or does this occur in the forum only? As soon as the data are defined by valid Matlab syntax, all these questions implicitly vanish.