%% Split Character Vector at Newlines
% Create a character vector and split it at newline characters. The newline function returns the newline character, char(10).

chr = 'Whose woods these are I think I know.'; 
chr = [chr newline 'His house is in the village though;']

%

C = splitlines(chr)

% Copyright 2012 The MathWorks, Inc.