Forums > Jitter

diagonal matrix

April 22, 2010 | 3:49 pm

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!!]


April 22, 2010 | 6:21 pm

here’s one way:

– Pasted Max Patch, click to expand. –

April 23, 2010 | 12:06 am

Another:

– Pasted Max Patch, click to expand. –

Viewing 3 posts - 1 through 3 (of 3 total)