I just downloaded the toolbox, but ran into some issues when running the example script. Whenever I run saveh5 without providing a rootname, line 93 of saveh5 returns an error. Perhaps the problem is that regexp(rootname,'/$') returns [] instead of a 'false' when rootname does not end wiht '/'?
Steps to reproduce:
data2hdf=1:3
saveh5(data2hdf,'test.h5');
Returns error:
Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar values. Use the ANY or ALL functions to reduce operands to logical scalar values.
Error in saveh5 (line 93)
if(~isfield(opt,'rootname') && regexp(rootname,'/$'))
I just downloaded the toolbox, but ran into some issues when running the example script. Whenever I run saveh5 without providing a rootname, line 93 of saveh5 returns an error. Perhaps the problem is that regexp(rootname,'/$') returns [] instead of a 'false' when rootname does not end wiht '/'?
Steps to reproduce:
Returns error:
It works fine when providing a rootname, eg:
Matlab version: 2022a and 2019a
Best regards, Abraham