hdfhx
Gateway to HDF external data (HX) interface
Syntax
[out1,...,outN] = hdfhx(funcstr,input1,...,inputN)
Description
hdfhx
is the MATLAB® gateway to the
HDF interface for manipulating linked and external data elements.
[out1,...,outN] = hdfhx(funcstr,input1,...,inputN)
returns
one or more outputs corresponding to the HX function in the HDF library
specified by functstr
.
There is a one-to-one correspondence between HX functions in
the HDF library and valid values for funcstr
. For
example, hdfhx('setdir',pathname);
corresponds
to the C library call HXsetdir(pathname)
.
Functions
Value of funcstr | Function Syntax | Description |
---|---|---|
'create' | access_id = hdfhx('create',file_id,tag,ref,extern_name,offset,length) | Creates a new external file special data element. |
'setcreatedir' | status = hdfhx('setcreatedir',pathname); | Sets the directory location for writing external file. |
'setdir' | status = hdfhx('setdir',pathname); | Sets the directory for locating external files. |
Input/Output Arguments
A status
or identifier output of -1 indicates
that the operation failed.
In cases where the HDF C library accepts NULL
for
certain inputs, an empty matrix ([]
or ''
)
can be used.