Mathematica以奇怪的格式列出

时间:2013-05-03 04:39:46

标签: wolfram-mathematica

您好我有以下简单程序:

joint = Table[0, {i, Length[labelnames]}, {j, 16}]; 

For[time = 1, 
 time < Length[topics], time++
  Do[
   joint[[l, t]]++, {l, labelsForTime[time]}, {t, topics[[time]]}
   ]
 ]

结果,联合是: {{0,1267,90,0,0,58,1358,2,25,1,0,0,6,0,2585,   0},(7507 + List)[111,773,3302,8092,405,1776,4203,153,9551,   118,9,2260,17,665,5586,0],(3288 + List)[0,43,46,716,0,   120,20,2,576,0,0,246,0,0,118,0],(382 + List)[7,80,191,   87,1,38,2887,3,1967,0,5,72 ....

注意输出中的(7505 + List),(3288 + List)..和其他类似元素。我只是无法弄清楚它们是什么,以及它们是如何进入joint的,这是一个简单的列表列表。

1 个答案:

答案 0 :(得分:1)

time++之后你不记得逗号吗? (我无法运行您的代码,因为有太多未知变量......)