Skip to content

Commit

Permalink
Matlab code to create sample H5 file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Smith committed Jan 9, 2023
1 parent a0e7dfe commit 677975d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/c++/hdf5.lite/unittests/create_123_barfoo_catdog_cx.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
% https://www.mathworks.com/help/matlab/ref/h5write.html
h5create('123_barfoo_catdog_cx.h5', '/1/bar/cat/i', [10, 1])
mydata = rand(10, 1);
h5write('123_barfoo_catdog_cx.h5', '/1/bar/cat/i', mydata)
h5disp('123_barfoo_catdog_cx.h5')

0 comments on commit 677975d

Please sign in to comment.