A more efficient way of doing the same thing which supports tabs and newlines:
splitchar = '\n'; %Split on newline characters
C = textscan(s,['%s' splitchar]);
Comment only
28 Sep 2008
split
Splits a delimited string into a cell array.
xiaohui chen
4
24 Sep 2008
split
Splits a delimited string into a cell array.
cant believe
no support for tabs? wtf?
3
25 Mar 2008
split
Splits a delimited string into a cell array.
Abel Brown
This rocks! so useful in perl. nice to have it for matlab also! Nice work
5
27 Dec 2007
split
Splits a delimited string into a cell array.
Comment only