Documentation of get_coord


Global Index (all files) (short | long) | Local Index (files in subdir) (short | long)


Function Synopsis

theResult = get_coord(self);

Help text

  theCoord = get_coord(nc);

  get_coord(nc) returns teh coordinate variables
  of 'nc'.  


Listing of function get_coord

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