%% Read Attribute Associated with Variable
% Read an attribute associated with a variable.

scale_factor = ncreadatt('example.nc','temperature','scale_factor')

% Copyright 2015 The MathWorks, Inc.