Documentation of get_varn


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


Function Synopsis

theVar = get_varn(self);

Help text

  theVar = get_varn(nc);

  get_varn(nc) returns the variables (not coordinates)
  of 'nc'.  


Cross-Reference Information

This function is called by

Listing of function get_varn

function theVar = get_varn(self);

if nargin < 1, help(mfilename), return, end

vars = var(self);

for i = length(vars):-1:1;
   if iscoord(vars{i}), vars(i) = []; end
end

if nargout > 0
   theVar = cell(size(vars));
   theVar = vars;
else
   for i = 1:length(vars)
      disp(name(vars{i}))
   end
end