Skip to content

Instantly share code, notes, and snippets.

@tsalo
Created April 29, 2015 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsalo/f82cee5df93e1bef50eb to your computer and use it in GitHub Desktop.
Save tsalo/f82cee5df93e1bef50eb to your computer and use it in GitHub Desktop.
Check if all files in cell array exist.
function log = allFilesExist(cellArray)
log = all(cellfun(@(X) logical(exist(X, 'file')), cellArray));
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment