Mercurial > forge
changeset 12616:a8291e04a040 octave-forge
return error if no files are found for ncCatArray
author | abarth93 |
---|---|
date | Wed, 13 May 2015 09:33:11 +0000 |
parents | 0039c65e5e44 |
children | 54713b3cb49d |
files | extra/ncArray/inst/ncCatArray.m |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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));