title: How do I save a matrix of integers to a text file in Matlab?
body: <p>I have a 2D matrix <code>myMatrix</code> of integers which I want to save its content to a text file. I did the following:</p>
  
  <pre><code>save myFile.txt myMatrix -ASCII
  </code></pre>
  
  <p>I get this message: </p>
  
  <blockquote>
    <p>Warning: Attempt to write an unsupported data type to an ASCII file.
        Variable 'myMatrix' not written to file. 
    and nothing is written.</p>
  </blockquote>
  
  <p>What to do?</p>