how to append data in hdf5 file.
20 ビュー (過去 30 日間)
古いコメントを表示
hdf5write('check_v1.h5','/g1/coordinates',all_data);
hdf5write('check_v1.h5','/g2/coordinates_vel',all_data1);
How do i append the above two datasets?
h5disp('check_v1.h5') %shows the last dataset i write
HDF5 check_v1.h5
Group '/'
Group '/g2'
Dataset 'coordinates_vel'
Size: 11272228
MaxSize: 11272228
Datatype: H5T_COMPOUND
Member 'VelocityX': H5T_IEEE_F64LE (double)
Member 'VelocityY': H5T_IEEE_F64LE (double)
Member 'TargetXCoord': H5T_IEEE_F64LE (double)
Member 'TargetYCoord': H5T_IEEE_F64LE (double)
ChunkSize: []
Filters: none
FillValue: H5T_COMPOUND
0 件のコメント
採用された回答
Walter Roberson
2022 年 8 月 11 日
hdf5write('check_v1.h5','/g1/coordinates',all_data);
hdf5write('check_v1.h5','/g2/coordinates_vel',all_data1, 'WriteMode', 'append');
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で HDF5 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!