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.

H5T.get_inpad

Internal padding type for floating-point data types

Syntax

pad_type = H5T.get_inpad(type_id)

Description

pad_type = H5T.get_inpad(type_id) returns the internal padding type for unused bits in floating-point data types. type_id is a data type identifier. pad_type can be H5T_PAD_ZERO, H5T_PAD_ONE, or H5T_PAD_BACKGROUND.

Examples

 fid = H5F.open('example.h5');
 dset_id = H5D.open(fid,'/g3/float');
 type_id = H5D.get_type(dset_id);
 pad_type = H5T.get_inpad(type_id);
 switch(pad_type)
     case H5ML.get_constant_value('H5T_PAD_ZERO')
         fprintf('pad zero\n');
     case H5ML.get_constant_value('H5T_PAD_ONE');
         fprintf('pad one\n');
     case H5ML.get_constant_value('H5T_PAD_BACKGROUND')
         fprintf('pad background\n');
 end

See Also

Was this topic helpful?