In Maple, how do I save variables?
To save all variables in your current Maple session to a file, type the following at the Maple prompt:
save `filename.m`;
Replace filename with the name of the file, keeping the
.m extension. Also, be sure to use backquotes
(`) rather than single quotes ('), which are
used to delay evaluation. In some fonts, the two look nearly
identical.
To save the value of a specific variable in a .m file,
type the following at the Maple prompt:
Replace varname with the name of the variable(s), and
replace filename with the name of the file.
You cannot edit a .m file, because it is saved in Maple
internal format and is therefore not readable by users. You can,
however, save an ASCII file (which can be edited) by saving
it without the .m extension. Following are two examples:
You can then read the file by entering at the Maple prompt:
read `filename`;Alternatively, you can edit the file with a text editor. You may need
to provide the full path to the file. In Mac OS, use the Paste
Pathname choice under the Edit menu.
For more information, at the Maple prompt, enter:
?saveFor more about statistical and mathematical software, email the UITS Stat/Math Center, visit the center's web page, or phone 812-855-4724 (IUB) or 317-278-4740 (IUPUI). The center is located in Bloomington at 410 N. Park Avenue, and is open for consultation by appointment Monday-Friday 9am-5pm.
Last modified on April 05, 2011.







