Skip to main content
Best answer by Werner_E

I was not sure if the matrix Member_Node would always have exactly two columns, so I made a function which can also deal with arbitrary dimensions of Member_Node:

Werner_E_0-1611830268387.png

 

In case you want Label_Node and also the result to be simple matrices rather than the nested ones you had shown, you may just change the vector index for the row selector.

Werner_E_1-1611830453162.png

Changes for simple Input matrix in yellow

Change for simple output matrix in red

 

Prime 6 sheet attached

 

 

2 replies

23-Emerald IV
January 28, 2021

Here's your function:

LucMeekes_4-1611827647595.png

Be carefull when translating to Prime:

'm, ORIGIN' is an index (not a subscript) of M

The whole 'M m,ORIGIN' in turn is a subscript to Ln.

Results:

LucMeekes_3-1611827545197.png

Success!
Luc

 

15-Moonstone
January 28, 2021

Great Work 👍👍👍

Werner_E25-Diamond IAnswer
25-Diamond I
January 28, 2021

I was not sure if the matrix Member_Node would always have exactly two columns, so I made a function which can also deal with arbitrary dimensions of Member_Node:

Werner_E_0-1611830268387.png

 

In case you want Label_Node and also the result to be simple matrices rather than the nested ones you had shown, you may just change the vector index for the row selector.

Werner_E_1-1611830453162.png

Changes for simple Input matrix in yellow

Change for simple output matrix in red

 

Prime 6 sheet attached

 

 

15-Moonstone
January 28, 2021

Great Work 👍👍👍👍