title: MatLab list files (excluding directories) in a folder
body: <p>So I know I can list all the files and directories in my current folder using functions like <code>dir()</code> or <code>ls()</code>, and I know once listed, I can tell them from each other with the field <code>isdir</code>. </p>
  
  <p>But is there a way to exclude the directories from the very beggining and list the files alone? </p>
  
  <p>Even better, is there a way to exclude the current <code>.</code> and parent <code>..</code> directories -that will (of course) show everytime- and list every other file and directory? Seriously, who uses <code>ls()</code> wondering if <code>.</code> is there?</p>