Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5F.is_hdf5

Determine if file is HDF5

Syntax

value = H5F.is_hdf5(name)

Description

value = H5F.is_hdf5(name) returns a positive number if the file specified by name is in the HDF5 format, and zero if it is not. A negative return value indicates failure.

Examples

value = H5F.is_hdf5('example.tif');
if value > 0
    fprintf('example.tif is an HDF5 file\n');
else
    fprintf('example.tif is not an HDF5 file\n');
end
Was this topic helpful?