export data from Maple to a file
Export(dest, data, opts)
Export(data, target=direct, opts)
string; file path or URL of the data file
data to be exported
(optional) the format options as described later
base : one of bindir, currentdir, datadir, homedir, mapledir, tempdir, toolboxdir, or worksheetdir.
The base option specifies a base directory. Any local file specified with dest will be interpreted as a relative path under this directory. For the meaning of each of these values, see kernelopts or interface.
encoding : one of text or binary
Specifies whether the output should be encoded using a text or binary variant of the format. This option is only effective for the PLY and STL output formats. The default is binary.
format : string
The format option specifies the export format to use. This must correspond to one of the supported export formats. If omitted, the export format is inferred from the file extension of dest.
target : one of file or direct
The default target=file specifies that the data should be written to the file referenced by dest; target=direct means that the data will be exported to a string or ByteArray to be returned. Note that target=direct requires format to be provided explicitly.
The Export command exports data from Maple to an external file or to a string or ByteArray in the specified file format.
When target=file (the default), the command writes the exported data to the file dest and returns a number showing the count of bytes written.
When target=direct, the data is exported to a string or ByteArray which is returned as output. Note that target=direct requires format to be provided explicitly.
For details about the types of input accepted by a particular output format, consult the documentation for that format.
Export a plot to a JPEG file.
Export numeric data to a file in Comma-Separated Values (CSV) format.
Export data directly to a string in the JSON format with target=direct.
Export the same data to a JSON file.
The Export command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
The Export command was updated in Maple 2017.
The base option was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
Download Help Document
What kind of issue would you like to report? (Optional)