Skip to main content
10-Marble
January 4, 2024
Solved

program error when trying to stack matrices

  • January 4, 2024
  • 1 reply
  • 1105 views

I'm trying to write a short function in Prime 7.0 that will loop through data and populate multiple matrices and then stack them.
Even though the matrices are the same size, I am getting a "The dimensions of these arguments do not match." error when using the stack function.

I tried pulling sample matrices out of the loop and stacking them. That worked, as expected.

Can you not use the stack function in a loop? Or am I missing something else?

Thanks!

 

error.png

Best answer by justhumm

Never mind...
I had the stack function located at the wrong spot of the loop. ðŸ™„

justhumm_0-1704386320813.png

 

1 reply

justhumm10-MarbleAuthorAnswer
10-Marble
January 4, 2024

Never mind...
I had the stack function located at the wrong spot of the loop. ðŸ™„

justhumm_0-1704386320813.png