In Maple, how can I save a matrix to a text file?
To save a matrix to a file in Maple, use the fprintf
(file-print-formatted) command (which also works in batch files), for
example:
In your current directory, Maple will create a text file called
matrix.txt that reads as follows:
For more about Maple, see Maple at IU.
For 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 January 28, 2011.







