H4VARIABLES get HDF4 dataset names

get dataset names in a file under group default is datasets under "/", optionally under "/group"

Contents

Inputs

Outputs

function names = h4variables(file)
arguments
  file (1,1) string {mustBeFile}
end

finf = hdfinfo(file);

ds = finf.SDS;

names = string({ds.Name});

end