%% Read Dataset Attributes
% Read the attribute units from the dataset lon in the HDF5 file example.h5.

val = h5readatt('example.h5','/g4/lon','units')

% Copyright 2019 The MathWorks, Inc.