title: Get the file name without Extension in matlab
body: <p>I want to get the image file name without the Extension in MATLAB.
  I have Tried to use (fileparts )function as:</p>
  
  <pre><code>[pathstr, name, ext, versn] = fileparts(filename); 
  </code></pre>
  
  <p>in this function the (filename) must be with complete Path in order to get the file name without extension in the the variable (name). </p>
  
  <p>when I have just the file name like ('D10_11.jpg'), I get the following Error :</p>
  
  <pre><code>"Input must be a row vector of characters"
  </code></pre>
  
  <p>Please, if their is another function to solve this problem</p>