cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

program error when trying to stack matrices

justhumm
5-Regular Member

program error when trying to stack matrices

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

1 ACCEPTED SOLUTION

Accepted Solutions
justhumm
5-Regular Member
(To:justhumm)

Never mind...
I had the stack function located at the wrong spot of the loop. 🙄

justhumm_0-1704386320813.png

 

View solution in original post

1 REPLY 1
justhumm
5-Regular Member
(To:justhumm)

Never mind...
I had the stack function located at the wrong spot of the loop. 🙄

justhumm_0-1704386320813.png

 

Top Tags