Transpose an Array
-
Hello,
I want to transpose an Array, precisely a matrix. The rows an cols are not equal and variable. like this
{{8,9,8},{3,5,6},{4,2,4},{4,5,2},{3,1,5}}
Is there a simple command in the firmware?
Or does anyone have an idea for a procedure?
I use the RepRap Fimrware 3.5.2.
The problem is, I can't define an empty array in RepRap Firmware, so I don't know how to create a suitable array to move the values.Thanks for help
-
@Patrick95 said in Transpose an Array:
The problem is, I can't define an empty array in RepRap Firmware, so I don't know how to create a suitable array to move the values.
This works for me:
global A=vector(0,0) echo global.A {}