我有一个 csv 文件,我已经用 pandas 将它转换成一个 h5 文件:
data = pd.read_csv('file.csv')
data.to_hdf('file.h5', 'table')
现在我想用matlab阅读它。
我怎样才能做到这一点?
我努力了
data = h5read('file.h5','/g4/lat');
但我得到:
Error using h5readc
The HDF5 library encountered an error and produced the
following stack trace information:
H5G_traverse_real component not found
H5G_traverse internal path traversal failed
H5G_loc_find can't find object
H5Dopen2 not found
Error in h5read (line 58)
[data,var_class] =
h5readc(Filename,Dataset,start,count,stride);
Error in read_time_series (line 4)
data = h5read(data_path,'/g4/lat');