www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/AccessDataInFieldsOfVdataExample.m
%% 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|. % Copyright 2015 The MathWorks, Inc. s = hdfinfo('example.hdf'); data = hdfread(s.Vdata(1),'Fields',{'Idx','Temp','Dewpt'})