This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

H5DS.is_scale

Determine if dataset is a dimension scale

Syntax

bool = H5DS.is_scale(dataset_id)

Description

bool = H5DS.is_scale(dataset_id) determines whether the dataset dataset_id is a dimension scale.

Examples

fid = H5F.open('example.h5');
lat_dset_id = H5D.open(fid,'/g4/lat');
if H5DS.is_scale(lat_dset_id)
    fprintf('/g4/lat is a dimension scale.\n');
else
    fprintf('/g4/lat is not a dimension scale.\n');
end
H5D.close(lat_dset_id);
H5F.close(fid);