title: Accept a specific type of file Matlab
body: <p>I have a GUI using a Browe Button to search a file : </p>
  
  <pre><code>function Browse(app, event)
       FileName,FilePath ]= uigetfile();
       ExPath = fullfile(FilePath, FileName);
       app.FileTextArea.Value = ExPath;  
  end
  </code></pre>
  
  <p>And i save the file Path in a Text Area.
  I have another button that start a matlab script with the file path as parameter and so i would like to accept only a certain type of file (.ctm which is my own type of file) if possible like this :</p>
  
  <pre><code>if file is .ctm
      do something
  else 
      print('a .ctm file is needed')
  </code></pre>
  
  <p>Thanks for helping</p>