Solved
MathCAD unexpectedly Exiting Nested For Loop
- January 10, 2024
- 1 reply
- 1230 views
I have a Prime 7.0 worksheet with two matrices (of immediate interest). They are w [1x3] and P [3x2].
I am trying to manipulate and ensure that they have the same number of rows. And trying to do it with a nested loop.
BUT the inner loop seems to work once and then returns the matrix. The outer loop never increments to the next step.
I'm obviously doing something wrong, but can't see it.
If anyone could point me in the right direction, that would be great. Thanks!
FOR i: 1 TO rows(P)
---> FOR j: 1 TO rows(w)
---> ---> IF (criteria)
---> ---> ---> STACK (new row to w)
---> ---> ---> GOTO / SKIPTO next i




