title: Find line breaks from MATLAB system command
body: <p>I'm trying to parse the result string from a system command to an external program.</p>
  
  <pre><code>[status,result] = system(cmd);
  </code></pre>
  
  <p>result prints out on my console with its lines correctly broken out, i.e.</p>
  
  <p>line1</p>
  
  <p>line2</p>
  
  <p>...</p>
  
  <p>But it's actually just a single long character array, and there are no newline characters anywhere.  How does matlab know when to print out a new line?  And how can I separate the char array into its separate lines for further parsing.  Thanks!</p>