| Contents | Index |
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.
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 these functions, you must be familiar with the CDF C interface. Read the CDF documentation at the CDF Web site. For copyright information, see the cdfcopyright.txt file.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |