Mercurial > forge
changeset 11238:4ad4a68fd5b3 octave-forge
(none)
author | abarth93 |
---|---|
date | Mon, 12 Nov 2012 19:26:49 +0000 |
parents | f53febae9f93 |
children | 52d4771fa488 |
files | extra/ncArray/inst/@ncBaseArray/subsref.m extra/ncArray/inst/ncCatArray.m |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/ncArray/inst/@ncBaseArray/subsref.m Mon Nov 12 15:02:29 2012 +0000 +++ b/extra/ncArray/inst/@ncBaseArray/subsref.m Mon Nov 12 19:26:49 2012 +0000 @@ -52,7 +52,7 @@ elseif strcmp(idx.type,'.') % load attribute name = idx.subs; - index = find(strcmp(name,{self.vinfo.Attributes(:).Name})); + index = strmatch(name,{self.vinfo.Attributes(:).Name}); if isempty(index) error('variable %s has no attribute called %s',self.varname,name);
--- a/extra/ncArray/inst/ncCatArray.m Mon Nov 12 15:02:29 2012 +0000 +++ b/extra/ncArray/inst/ncCatArray.m Mon Nov 12 19:26:49 2012 +0000 @@ -77,7 +77,7 @@ for i=1:length(coord) - % coordinates do also depend on the dimension on which we concatenate + % coordinates do also depend on the dimension only which we concatenate coord(i).val = arr(dim,filenames,coord(i).name); if dim > length(coord(i).dims) coord(i).dims{dim} = catdimname;