2
$\begingroup$

I am a new Mathematica user, I am attempting to use ArrayFlatten but it seems not to work in this case. My codes are below,

w = IntegerPartitions[10, {3}]
x = Permutations[{a, b, c}, {3}]
simlength = Length[x]
simp = Transpose@w[[1 ;;]] x[[#]] & /@ Range[1, simlength, 1]
simp//MatrixForm

then I use

ArrayFlatten[...Outputfromprevioushere...]//MatrixForm

ArrayFlatten seems to have no effect at all. Is there anything I might be missing? Thanks a lot

$\endgroup$
  • 1
    $\begingroup$ MatrixForm >> Details and Options: MatrixForm acts as a "wrapper", which affects printing, but not evaluation. $\endgroup$ – kglr Apr 23 '17 at 22:25
  • $\begingroup$ does Transpose[ArrayFlatten[{simp}]] // MatrixForm give the desired output? $\endgroup$ – kglr Apr 23 '17 at 22:30
  • $\begingroup$ Thanks so much! This solves the problem. All is ok now $\endgroup$ – Rob Apr 23 '17 at 22:35
  • $\begingroup$ Rob, Welcome to mma.se. We suggest 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour and check the faqs!3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign. $\endgroup$ – kglr Apr 23 '17 at 22:49
  • $\begingroup$ Will do! Thanks again $\endgroup$ – Rob Apr 24 '17 at 3:33
2
$\begingroup$
Transpose[ArrayFlatten[{simp}]] // MatrixForm

gives

Mathematica graphics

|improve this answer|||||
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.