From 677975d7caa7dfbdaeef26425baef514144d5034 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 9 Jan 2023 11:46:22 -0500 Subject: [PATCH] Matlab code to create sample H5 file --- .../c++/hdf5.lite/unittests/create_123_barfoo_catdog_cx.m | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 modules/c++/hdf5.lite/unittests/create_123_barfoo_catdog_cx.m diff --git a/modules/c++/hdf5.lite/unittests/create_123_barfoo_catdog_cx.m b/modules/c++/hdf5.lite/unittests/create_123_barfoo_catdog_cx.m new file mode 100644 index 000000000..ef13cd6ec --- /dev/null +++ b/modules/c++/hdf5.lite/unittests/create_123_barfoo_catdog_cx.m @@ -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')