1.保存成excell文件
R := Array(1 .. 3, 1 .. 4, [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]])
with(ExcelTools)
Export(A00, "K0.xls", "Payroll", "A1")
导入matlab参与数值计算
K=xlsread('E:\Program\maple\K0.xls');
2.保存成text文档
若只有一组数据要保存
fd := fopen("A00.txt", WRITE, TEXT);
fprintf(fd, "%.5f", A00);
close(fd)
保存成科学计数法
fprintf(fd, "%e", A00);
若多组数据想保存到同一text文档
fd := fopen("A00.txt", APPEND, TEXT);
fprintf(fd, "%.5f\n", A00);
close(fd)