FOR loop with "This value must be a scalar" error message
- December 12, 2024
- 2 replies
- 1633 views
Hi to everyone!
I'm a newbie here and need help finding the idea for the solution to my issue—a brief explanation of the problem.
Mathcad Prime 9.0.0 is used for the modelling.
There is a FOR loop for which data is calculated, and there are conditions for selecting the coefficient. If the condition is TRUE, I want the program to choose the k1 and f values to be represented in the augmented matrix in the output.
But, as I can guess, the problem that prevents my loop from performing as it should in the type of input variable - each i-th value of the input variable u-value has to be checked for a condition—if it is TRUE, it goes to the list of output values; if FALSE, it returns an empty matrix.
Mathcad doesn't seem to recognise the particular u-value; it simultaneously recognises all the set of u-values [matrix]. Thus, I probably have the error message "this value must be a scalar."
PS The attached file could clarify my issue.
I would appreciate any information and help you can give.

