From: <aba...@us...> - 2012-07-31 08:29:35
|
Revision: 10786 http://octave.svn.sourceforge.net/octave/?rev=10786&view=rev Author: abarth93 Date: 2012-07-31 08:29:25 +0000 (Tue, 31 Jul 2012) Log Message: ----------- matlab compat Modified Paths: -------------- trunk/octave-forge/extra/ncArray/inst/nccoord.m Modified: trunk/octave-forge/extra/ncArray/inst/nccoord.m =================================================================== --- trunk/octave-forge/extra/ncArray/inst/nccoord.m 2012-07-30 18:00:45 UTC (rev 10785) +++ trunk/octave-forge/extra/ncArray/inst/nccoord.m 2012-07-31 08:29:25 UTC (rev 10786) @@ -18,7 +18,7 @@ % determine coordinates % using CF convention -dims = vinfo.Dimensions; +dims = {vinfo.Dimensions(:).Name}; % create empty coord array with the fields name and dims coord = struct('name',{},'dims',{}); @@ -54,7 +54,7 @@ index = strmatch(name,{finfo.Variables(:).Name}); if ~isempty(index) c.name = name; - c.dims = finfo.Variables(index).Dimensions; + c.dims = {finfo.Variables(index).Dimensions(:).Name}; coord(end+1) = c; end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |