Using 'for' function to determine all combinations from four sets of variables
I was wondering if anyone can help me create a programme in MathCAD for the following situation.
I have four matrices
- 1 column x 2 rows : variable 1 - representing the length of two members
- 2 columns x 3 rows : variable 2 - each column represents three load scenarios associated with two respective members above
- 1 column x 3 rows : variable 3 - considers three other load scenarios
- 1 column x 2 rows :variable 4- distance at which the values provided in matrix three can act along the members mentioned in matrix 1
Therefore all I want to is do is determine the 18 results that would result from the following equation
M=value+vvariable1*variable2+variable3*variable4
I have been trying to do this using the 'for'' function. Ideally the programme would do the following to detemine the 18 combinations
- use first row values from matrices 1 and 4 then
- use row 1 of matrix 3 and resolve for the three values in matrix 2
- repeat steps above for both rows 2 and 3 of matrix 3
- repeat all of step 1 using the second row values from matrices 1 and 4
- Output a matrix of results to create either 1x18 matrix or 3x6matrix
I hope this makes sense to some and any help will be appreciated. I have been going around in circles today at work putting off the innevitable of manually doing which would make it look an untidy document.
Many Thanks

