title: found a function in a file and after select it to do operation in my program matlab
body: <p>I created this function to browse all the functions stored in a file and now I want to select my function in my main program how can I select it</p>
  
  <p>This is my function:</p>
  
  <pre><code>function testMode(i)
  a=dir('H_*.m');
  if exist('i','var')
      if isempty(i)
          z={a.name}';
          [selection,ok]=listdlg('ListString',z,'SelectionMode','single');
          if ok
              i=find(selection,1,'first');
          end
      end
      nom=a(i).name;
      nom=nom(1:end-2);
      disp(nom)
  else
      disp('fonction a un argument')
  end
  </code></pre>