title: Check for existence of array of files
body: <p>I have a cell array containing file names. I want to check for the existence of all of these files in the subject folder, and if any one does not exist I wish to send a continue to the top-most for-loop (see mock code). Is there a way to do this in a one or two liner, instead of 1) using a for-loop and a double if-statement, or 2) building a function that for-loops over exist(). </p>
  
  <pre><code>subjects = {'/data/subject01','/data/subject02','/data/subject03'};
  files = {'a.txt','b.txt','c.txt'};
  for ii = 1:numel(subjects)
      for jj = 1:numel(files)
          fileExists = exist([subject{ii} '/' file{jj}],'file')
          if ~fileExists
              continue
          end
      end
      if ~fileExists
          continue
      end
      % Some code to execute if all files exist.
  end
  </code></pre>