Open an HDF5 file
obj = h5open(filename [, access]) obj = h5open(filename, access, driver [, driver_options...])
a string giving the filename
A string giving the access mode to use
A string giving the driver name
A boolean or a double depending of the driver value
A H5Object corresponding to the open file
Open an HDF5 file in using the access mode (by default "a").
The access mode is one of the five values:
Several drivers can be used:
x = 1:10; save(TMPDIR + "/x.sod", "x"); // SOD files are HDF5 ones // Open the created file a = h5open(TMPDIR + "/x.sod"); // Dump the file content h5dump(a); // list the contents of the root element. h5ls(a) // Get the SOD version a.root.SCILAB_sod_version.data // or if the name contains 'invalid' chars a.root("SCILAB_sod_version").data // Get the content of the dataset x a.root.x.data // it is possible to open the dataset directly with its path // Subgroups or datasets are separated with '/' a("/x") // Free the resources h5close(a); | ![]() | ![]() |
Version | Description |
5.5.0 | HDF5 module introduced. |