Extracting rows from a Matrix of results
- July 1, 2023
- 2 replies
- 6128 views
Hello everyone,
I'm encountering a problem with the attached Mathcad Prime 8 where the custom function MaxRecords(M) isn't yielding the expected results when reading imported data from the attached RAW DATA.xlsx.
The input matrix "MaxT3" passed to the MaxRecords(M) function, comprises five sets of results for each ID where there is a total of 289 IDs. I need to extract only the records with the maximum resultant force FR (column 10). The result from MaxRecords should have only 289 records, but it's currently delivering 1445 records (289x5). Could you please review and let me know where the issue lies?.
Also, the resultant matrix of maximum records should keep the same order as the matrix MainRunT3:

I tested the MaxRecords function with a smaller data set and is working fine (see snapshots below of the smaller set raw data and the corresponding MathCAD results):


Finally, please let me know an easy method to disconnect a large matrix from its formula.
The attached prime is version 8. Please keep in mind that currently I don't have access to p9.





