The result is a cell array with some non-empty elements. This searchesall N files but if I want it to stop when it finds M=2 files, theredoesn't seem to be a way. This is probably well known behavior, butI'm posting just in case anyone has a workaround... :)