Adding Additional Rows to an Existing Matrix in MathCAD Prime 8 Using Formulas Based on Exist Matrix
- June 22, 2023
- 1 reply
- 4882 views
Hello everyone,
I have a new question for you that should be straightforward. I'm wondering how write a program to add additional rows to a matrix, where the values of the elements are calculated according to a formula using existing data within the matrix.
The attached Excel file includes a tab with input for the ReadExcel function, as well as a tab showing the desired output by a writexcel function. Essentially, the matrix is a list of node point IDs with force vectors due to six load cases. Each node ID will have the same number of load cases and the input will be always sorted by LoadCase column. I would like to add new rows for each node ID, namely 7 OPEPOS and 8 OPENEG, using a specific formula which pulls its input from the existing data within the matrix.
Input for the readexcel function:

Desired output by the writexcel function:

Rows 8, 9, 16 and 17 should be added by the formulas:


FR is the force resultant.
Just as a note, I have currently MathCAD Prime 8 and unfortunately I don't have access to p9.
