Global Index (all files) (short | long) | Local Index (files in subdir) (short | long)
theResult = get_coord(self);
theCoord = get_coord(nc); get_coord(nc) returns teh coordinate variables of 'nc'.
function theResult = get_coord(self);
if nargin < 1, help(mfilename), return, end
vars = cell(size(var(self)));
nvars = length(vars);
for i = nvars:-1:1;
vars{i} = var(self, i);
if ~iscoord(vars{i}); vars(i) = []; end
end
if nargout > 0
theResult = cell(size(vars));
theResult = vars;
else
for i = 1:length(vars)
disp(name(vars{i}))
end
end