我很難將矩陣導入Mathematica和Maple。該文件的格式如下:將矩陣導入Mathematica和Maple
0.0000000 1.0000000 1.0000000
1.0000000 1.0000000 0.0000000
1.0000000 0.0000000 0.0000000
當導入到與數學:
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}}
從那裏它不以數學函數響應。顯然看起來不正確的導入。
此外,在楓:
> A = ImportMatrix["Maple_Matrix1.txt", source=delimited]
>
> A
> syntax error, missing operator or ';':
更多問題導入。
導入到任何一個都會很好。每個人都有一套我想使用的內置功能。
在Mathematica中嘗試執行'FullForm [Import [「Matrix1.txt」,「Table」]]',我希望你會馬上看到問題。看起來好像我不熟悉的楓樹在同樣的問題上也是一團糟。 –
FullForm []實際上把我帶出了mathematica shell ... –