1-Visitor
January 18, 2024
Solved
Stacking a Matrix with a For Loop
- January 18, 2024
- 1 reply
- 3610 views
I'm struggling to get a for loop to run in Mathcad Prime 7.0.0
I have a matrix "d" that I want to stack "N" times. The matrix "d" could have any number of rows, and "N" >= 1 (these are defined elsewhere in my sheet). But I cannot for the life of me figure out how to iterate through the loop. Where have I gone wrong?
The examples I see are using "i" inside the loop to perform an operation (sum several terms, etc.). Maybe since I'm not actually using "i" for the calculation anywhere it's breaking? Maybe because my stacked matrix isn't actually a function defined by "i"? Should I be using while instead of if?



