For example, I produce a list of matrices, likes a=Table[IdentityMatrix[2], {i, 2}],so result is {{{1, 0}, {0, 1}}, {{1, 0}, {0, 1}}}.
But I want {{1, 0}, {0, 1}}, {{1, 0}, {0, 1}}, so what should I do?
Asked
Active
Viewed 23 times
0
dnvin
- 47
- 4
{{1, 0}, {0, 1}}, {{1, 0}, {0, 1}}? If you paste it to the nb and try to evaluate it will tell you the syntax is not complete. What is the context? maybe you needApplyorSequence? – Kuba Dec 12 '18 at 08:50Sequence @@ a, for instance:Plus[Sequence @@ a]– SPPearce Dec 12 '18 at 08:59{m1,m2} = Table[IdentityMatrix[2], {i, 2}]– SPPearce Dec 12 '18 at 09:00