I have code that multiplies 2 arrays together a 6x6 with a 3x3, but the output is in a 6x6 2D array when I need it to be in a 4x4 2D array.
The output looks like this:
[20, 0, 10, 10, 0, 20]
[20, 0, 10, 10, 0, 20]
[20, 0, 10, 10, 0, 20]
[20, 0, 10, 10, 0, 20]
[20, 0, 10, 10, 0, 20]
[20, 0, 10, 10, 0, 20]
When I need it to look like this
[0, 10, 10, 0]
[0, 10, 10, 0]
[0, 10, 10, 0]
[0, 10, 10, 0]
Will I have to redesign my looping code or could I make a new loop that populates an array with the middle parts of my current output
I cannot post code due to plagiarism rules, but the reason why I don't output a 4x4 is because I keep getting Out of Bounds error.
Thanks in advance