diagonal matrix

Apr 22, 2010 at 3:49pm

diagonal matrix

Can anyone help me out with this?

Is there an easy way to restructure a 3×3 matrix to become a 9×9 matrix, with the original values on the diagonal and all other cells are left with a value of 0.

i.e. cell 0 0 value stays in 0 0, 1 0 moves to 1 1, 2 0 moves to 2 2, 1 0 moves to 3 3, 1 1 to 4 4 etc, up to 3 3 value is in 9 9, [if i have my cell referencing correct that is!!]

#49946
Apr 22, 2010 at 6:21pm

here’s one way:

– Pasted Max Patch, click to expand. –
#179374
Apr 23, 2010 at 12:06am

Another:

– Pasted Max Patch, click to expand. –
#179375

You must be logged in to reply to this topic.