Summing up Current Data columns in a Matrix based on associated Time Values
- February 12, 2024
- 1 reply
- 3181 views
Using Prime 9.0
Hello,
I have a large matrix of time and current data for 6 different channels. The even columns (0,2,4,6,8,10) contain the time data for the odd current data columns to the right (1,3,5,7,9,11) - Excel image shown below for visual clarity.
I am trying to sum up the current data of the 6 channels into a 2 column matrix (time, current) adding the currents at the appropriate times. The time data is in microseconds with time steps of ~.006-.007 μs and the channels time data overlap with start times shifted by 7.5 μs. For example, Channel 0's time data spans from 7.5 μs to 41 μs, Channel 1's time data spans from 15 μs to 48.5 μs, and so on. I wrote the matrix data to an excel file and attached.
Excel Image:

MathCAD matrix:

It's kind of hard to explain verbally, but basically the channels have time and current data that overlap, and I want to add the currents of the overlapping times accordingly.
I have a user-defined function that simply adds up the odd current data columns together, but doesn't take into account the time data at all...

Let me know if further clarification is needed, and I appreciate any help with this!


