我有一个 file.txt 看起来像这样
key.txt
date: Nov_17_12
begin
k 6.822379e+001 1.298165e+002 0.000000e+000
k 0.000000e+000 1.298165e+002 0.000000e+000
k 6.822379e+001 7.357968e+001 0.000000e+000
end
begin
k 6.822379e+001 7.357968e+001 0.000000e+000
k 0.000000e+000 1.298165e+002 0.000000e+000
k 0.000000e+000 0.000000e+000 0.000000e+000
end
begin
k 6.822379e+001 7.357968e+001 0.000000e+000
k 0.000000e+000 0.000000e+000 0.000000e+000
k 1.456291e+002 7.357968e+001 0.000000e+000
end
begin
k 1.456291e+002 7.357968e+001 0.000000e+000
k 0.000000e+000 0.000000e+000 0.000000e+000
k1.456291e+002 0.000000e+000 0.000000e+000
end
那么如何将其转换为 MatrixForm 为:
A1 = {{6.822379e+001 1.298165e+002 0.000000e+000}
{0.000000e+000 1.298165e+002 0.000000e+000}
{6.822379e+001 7.357968e+001 0.000000e+000}}
A2 = 布拉布拉