【发布时间】:2014-01-22 17:39:35
【问题描述】:
我在将矩阵导入 Mathematica 和 Maple 时遇到了困难。文件格式如下:
0.0000000 1.0000000 1.0000000
1.0000000 1.0000000 0.0000000
1.0000000 0.0000000 0.0000000
当导入mathematica时:
In[1]:= Import["Matrix1.txt", "Table"]
Out[1]:= {{0.0000000 1.0000000 1.0000000}, {1.0000000 1.0000000 0.0000000}, {1.0000000 0.0000000 0.0000000}}
从那里它不响应 Mathematica 函数。并且显然看起来错误地导入了。
也在枫树中:
> A = ImportMatrix["Maple_Matrix1.txt", source=delimited]
>
> A
> syntax error, missing operator or ';':
更多导入问题。
导入到任何一个都很棒。每个都有一组我想使用的内置函数。
【问题讨论】:
-
在 Mathematica 中尝试执行
FullForm[Import["Matrix1.txt", "Table"]],我希望你会马上看到问题。我不熟悉的 Maple 似乎对同样的问题犹豫不决。 -
FullForm[] 实际上把我带出了mathematica shell...
标签: matrix import wolfram-mathematica maple