# HG changeset patch # User abarth93 # Date 1431509591 0 # Node ID a8291e04a04009f86d2c5203f0fed0cb9925802d # Parent 0039c65e5e44ef4a8b785fbb256deb9080c0cc81 return error if no files are found for ncCatArray diff -r 0039c65e5e44 -r a8291e04a040 extra/ncArray/inst/ncCatArray.m --- a/extra/ncArray/inst/ncCatArray.m Tue May 12 20:26:49 2015 +0000 +++ b/extra/ncArray/inst/ncCatArray.m Wed May 13 09:33:11 2015 +0000 @@ -80,6 +80,11 @@ 'http://www.mathworks.com/matlabcentral/fileexchange/19550']); end end + + if isempty(filenames) + error('ncArray:nomatch','no file found matching %s',pattern); + end + elseif isa(pattern, 'function_handle') filenames = cell(1,length(range));