


MCAGT Get the values of a NetCDF attribute.
MCAGT('CDF','VAR','ATT') gets the VALUES
of the attribute 'ATT' associated with variable
'VAR' in the NetCDF file 'CDF'.
Example:
values = mcagt('foo.cdf', 'x', 'complex')

0001 function values = mcagt(cdf, var, att) 0002 % MCAGT Get the values of a NetCDF attribute. 0003 % MCAGT('CDF','VAR','ATT') gets the VALUES 0004 % of the attribute 'ATT' associated with variable 0005 % 'VAR' in the NetCDF file 'CDF'. 0006 % 0007 % Example: 0008 % values = mcagt('foo.cdf', 'x', 'complex') 0009 0010 if nargin < 3 0011 help mcagt 0012 return 0013 end 0014 0015 cdfid=mexcdf('open',cdf,'nowrite'); 0016 values=mexcdf('attget',cdfid,var,att); 0017 mexcdf('close',cdfid);