title: Create a blank text file from within a function in Matlab
body: <p>I wnat to create a function:</p>
  
  <pre><code>function[check]=createFile(filename, matrix)
  </code></pre>
  
  <p>Where I create a blank text file with the name 'filename'.
  Where later in the function inputs from 'matrix' can be put in and stored.</p>
  
  <p>2 question:
  1)How do I create just a blank .txt file?</p>
  
  <p>2)I've had some problem with this in somewhat simular functions, but is there an easy way to get rid of the need to write apostrophes in the arguments when calling the function?(i.e: createFile(name,matrix) instead of createFile('name',matrix)</p>