Write block of data
tf = write(ds,data,info,outputFormat)
tf = write(ds,data,info,outputFormat,varargin)
If your custom datastore subclasses from
then it inherits a
write method that is capable of writing data for known
datastore formats. However, if your custom datastore works with custom data formats, then you
must implement your own
write method in the subclass. This method must be
capable of writing data in any format listed in the
SupportedOutputFormats property of the class.
data— Block of data from
Block of data from
read, specified as a table or array depending on
the type of datastore.
info— Information about data from
Information about data from
read, specified as a structure array or
cell array depending on the type of datastore.
outputFormat— Output format
Output format, specified as a character vector or string scalar.
varargin— Variable length input
Variable length input, specified as separate input arguments of any type. The
write method has four required inputs, and any additional inputs are
passed to the method as a cell array. (See
varargin for an explanation.) You can use this functionality to pass
name-value pairs, optional flags, or parameters for use in the body of the
To learn about attributes of methods, see Method Attributes.