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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Help with For Loops with Matrices

sah2473
1-Newbie

Help with For Loops with Matrices

Hi,

I am relatively new to programming and to Mathcad as well. I am using Mathcad Prime 2.0. I currently have a 15x3 matrix and a 1x3 matrix. I am trying to create a for loop that will call out each column of the 15x3 matrix and then subtract off the 1x3 matrix from the column and then output all 15 answers back into matrix form. I am a first time user with the discussion board so I apologize if I am not clear with what I want. I will attach the worksheet that I am currently working with. Any and all help or suggestions is greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions

Change the vector index at vec to a row selector and your routine works. The dummy parameter vec is not necessary.

See attached

View solution in original post

2 REPLIES 2

Change the vector index at vec to a row selector and your routine works. The dummy parameter vec is not necessary.

See attached

Thanks for the quick help.

Top Tags