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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

program error when trying to stack matrices

justhumm
10-Marble

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

ACCEPTED SOLUTION

Accepted Solutions

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

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

justhumm_0-1704386320813.png

 

Announcements

Top Tags