MATLAB Function Reference Previous page   Next Page

Construct cdfepoch object for Common Data Format (CDF) export



E = cdfepoch(date) constructs a cdfepoch object, where date is a valid string (datestr), a number (datenum) representing a date, or a cdfepoch object.

When writing data to a CDF using cdfwrite, use cdfepoch to convert MATLAB formatted dates to CDF formatted dates. The MATLAB cdfepoch object simulates the CDFEPOCH data type in CDF files.

Use the todatenum function to convert a cdfepoch object into a MATLAB serial date number.

See Also

cdfinfo, cdfread, cdfwrite, datenum

Previous page  cdf2rdf cdfinfo Next page

© 1994-2005 The MathWorks, Inc.