Clear Filters
Clear Filters

Writing non complete rows and columns to an hdf5 file

1 view (last 30 days)
I have an array of data foo, let's say size(foo) = [1 175]
I also have a h5 file, let's call it bar.h5 with a dataset'/baz' of size [100 100]
Now I wan't to write foo to bar such that it fills the first 1.75 rows of bar such that the first row are completly filled and the second row has the first 75 values converted to the last 75 values of foo
After this I'll change foo and write the next 175 values to bar
I've tried doing
h5write('bar.h5','/baz',foo,[1 1], [2 75])
But this does not work. I don't know how to reshape foo in a way that would allow me to write this.
I realize that I could just make bar.h5/baz have size [10000 1] but then I'd need to reshape the data every time I wan't to look at it.

Answers (0)

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!