www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ReadDataSetInHDFFileExample.m

    %% Read Data Set in HDF File
%%
% Specify the name of the HDF file and the name of the data set. This
% example reads a data set named |temperature| from a sample HDF file.

% Copyright 2015 The MathWorks, Inc.

data = hdfread('sd.hdf','temperature');