Main Content


Gateway to VF functions in HDF Vdata interface


[out1,...,outN] = hdfvf(funcstr,input1,...,inputN)


hdfvf is the MATLAB® gateway to the VF unctions in the HDF Vdata interface.

[out1,...,outN] = hdfvf(funcstr,input1,...,inputN) returns one or more outputs corresponding to the VF function in the HDF library specified by functstr.

There is a one-to-one correspondence between VF functions in the HDF library and valid values for funcstr. For example, hdfvf('nfields',vdata_id) corresponds to the C library call VFnfields(vdata_id).

Field Inquiry Functions

Field inquiry functions provide specific information about the fields in a given vdata, including the field's size, name, order, type, and number of fields in the vdata.

Value of funcstrFunction SyntaxDescription
'fieldesize'fsize = hdfvf('fieldesize',vdata_id,field_index)Retrieves the field size (as stored in a file) of a specified field.
'fieldisize'fsize = hdfvf('fieldisize',vdata_id,field_index)Retrieves the field size (as stored in memory) of a specified field.
'fieldname'name = hdfvf('fieldname',vdata_id,field_index)Retrieves the name of the specified field in the given vdata.
'fieldorder'order = hdfvf('fieldorder',vdata_id,field_index)Retrieves the order of the specified field in the given vdata.
'fieldtype'data_type = hdfvf('fieldtype',vdata_id,field_index)Retrieves the data type for the specified field in the given vdata.
'nfields'count = hdfvf('nfields',vdata_id)Retrieves the total number of fields in the specified vdata.

Output Arguments

A status or identifier output of -1 indicates that the operation failed.

Version History

Introduced before R2006a