function id = create(filename)
%cdflib.create Create CDF file
%   cdfId = cdflib.create(filename) creates a new CDF file and returns the 
%   file ID.
%
%   This function corresponds to the CDF library C API routine 
%   CDFcreateCDF.  
%
%   Example:
%       cdfid = cdflib.create('myfile.cdf');
%       cdflib.close(cdfid);
%
%   Please read the file cdfcopyright.txt for more information.
%
%   See also cdflib, cdflib.open, cdflib.close, cdflib.delete.


%   Copyright 2009-2013 The MathWorks, Inc.

if nargin > 0
    filename = convertStringsToChars(filename);
end

id = cdflibmex('create',filename);
