You can split a string in MATLAB when an enter appears using the splitlines
function.
Here's an example:
main.m168 chars14 lines
The splitlines
function splits the input string into a cell array of strings at each newline character.
gistlibby LogSnag