how to append data in hdf5 file.
21 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Walter Roberson
on 11 Aug 2022
hdf5write('check_v1.h5','/g1/coordinates',all_data);
hdf5write('check_v1.h5','/g2/coordinates_vel',all_data1, 'WriteMode', 'append');
0 Comments
More Answers (0)
See Also
Categories
Find more on HDF5 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!