Mercurial > forge
changeset 10608:a4909280179a octave-forge
(none)
author | abarth93 |
---|---|
date | Tue, 31 Jul 2012 14:43:11 +0000 |
parents | 76a625eefc1e |
children | 4f47a76d5195 |
files | extra/ncArray/inst/nccoord.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/ncArray/inst/nccoord.m Tue Jul 31 14:33:36 2012 +0000 +++ b/extra/ncArray/inst/nccoord.m Tue Jul 31 14:43:11 2012 +0000 @@ -38,7 +38,7 @@ % check for coordinate dimensions for i=1:length(dims) % check if variable with the same name than the dimension exist - index = find(strcmp(dims{i},{finfo.Variables(:).Name})); + index = find(strcmp(dims{i},{finfo.Variables(:).Name}),1); if ~isempty(index) coord = addcoord(coord,dims{i},finfo); end @@ -50,7 +50,7 @@ function coord = addcoord(coord,name,finfo) % check if coordinate is aleady in the list -if isempty(find(strcmp(name,{coord(:).name}))) +if isempty(find(strcmp(name,{coord(:).name}),1)) % check if name is variable index = find(strcmp(name,{finfo.Variables(:).Name}));