%% Access Data in Fields of Vdata
% Use the Vdata field from the information returned by hdfinfo to read three fields of the data, Idx, Temp, and Dewpt.

s = hdfinfo('example.hdf'); 
data = hdfread(s.Vdata(1),'Fields',{'Idx','Temp','Dewpt'})

% Copyright 2015 The MathWorks, Inc.