Write hyperslab of data to variable
cdflib.hyperPutVarData(cdfId,varNum,recSpec,dimSpec,data)
cdflib.hyperPutVarData(cdfId,varNum,recSpec,dimSpec,data)
writes a hyperslab of data to a variable in a Common Data Format (CDF)
file. Hyper access allows more than one value to be read from or written
to a variable with a single call to the CDF library.
|
Identifier of a CDF file, returned by a call to |
|
Specifies the variable containing the datum. |
|
Three-element array described by |
|
Three-element cell array described by |
|
Data to write to the variable. |
Create a CDF, create a variable, and then write a slab of data to the variable. To run this example, you must be in a writable folder.
cdfid = cdflib.create('your_file.cdf'); % Create a variable in the file. varNum = cdflib.createVar(cdfid,'Grades','cdf_int1',1,[],true,[]); % Write data to the variable cdflib.hyperPutVarData(cdfid,varNum,0,[],int8(98)) %Clean up cdflib.delete(cdfid); clear cdfid
This function corresponds to the CDF library C API routine CDFhyperzPutVarData
.
To use this function, you must be familiar with the CDF C
interface. Read the CDF documentation at the CDF website
.
For copyright information, see the cdfcopyright.txt
file.