H5VARIABLES get HDF5 dataset names
get dataset names in a file under group default is datasets under '/', optionally under '/group'
Contents
Inputs
- file: filename
- group: group name (optional)
Outputs
- names: variable names
function names = h5variables(file, group) if nargin < 2 group = '/'; end finf = h5info(file, group); ds = finf.Datasets; if isempty(ds) names = string.empty; else names = string({ds.Name}); end end