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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Summing Data depend on Index

SPRstructur
15-Moonstone

Summing Data depend on Index

Dear all 

Please help me do summing data depending on Index as attachment.

Thank you

Q5.png

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:SPRstructur)

Fred's contribution shows impressively that the use of Express strongly encourages creativity - chapeaux!

Here is a solution using programming (not working in Express)

Werner_E_0-1613087385225.png

Unfortunately user-written programs can't be written to accept a variable number of arguments. So I guess it would be better to rewrite the function to accept just one matrix and do the stacking outside of the function, maybe when calling it. That way its possible to deal with more than two matrices the very same way:

Werner_E_1-1613087967450.png

 

Prime 6 sheet attached

 

 

View solution in original post

2 REPLIES 2

Using Express!

Werner_E
25-Diamond I
(To:SPRstructur)

Fred's contribution shows impressively that the use of Express strongly encourages creativity - chapeaux!

Here is a solution using programming (not working in Express)

Werner_E_0-1613087385225.png

Unfortunately user-written programs can't be written to accept a variable number of arguments. So I guess it would be better to rewrite the function to accept just one matrix and do the stacking outside of the function, maybe when calling it. That way its possible to deal with more than two matrices the very same way:

Werner_E_1-1613087967450.png

 

Prime 6 sheet attached

 

 

Announcements

Top Tags