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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

5-Regular Member

Retrive horizontal matrix rows based on vector in Mathcad

Hello everyone,

I would like to retrieve certain rows of a matrix based on an initial vector:

Lets say I have the vector Lp and and I want to search the rows in the matrix M (based on the first column) in order to achieve the matrix Final.

Note that the vector Lp can have more numbers as for the Matrix M (this is just an example).

Is there a simple way to do this?

Miguel,

1 ACCEPTED SOLUTION

Accepted Solutions
23-Emerald II
(To:MC_9370533)

@MC_9370533 wrote:

Hello everyone,

I would like to retrieve certain rows of a matrix based on an initial vector:

Lets say I have the vector Lp and and I want to search the rows in the matrix M (based on the first column) in order to achieve the matrix Final.

Note that the vector Lp can have more numbers as for the Matrix M (this is just an example).

Is there a simple way to do this?,

Is this of any help, Miguel?

Prime 7 worksheet attached.   (You can safely ignore everything else that is in the collapsed Areas, I was just using this worksheet as a scratchpad for some other questions)

Stuart

3 REPLIES 3
23-Emerald II
(To:MC_9370533)

@MC_9370533 wrote:

Hello everyone,

I would like to retrieve certain rows of a matrix based on an initial vector:

Lets say I have the vector Lp and and I want to search the rows in the matrix M (based on the first column) in order to achieve the matrix Final.

Note that the vector Lp can have more numbers as for the Matrix M (this is just an example).

Is there a simple way to do this?,

Is this of any help, Miguel?

Prime 7 worksheet attached.   (You can safely ignore everything else that is in the collapsed Areas, I was just using this worksheet as a scratchpad for some other questions)

Stuart

5-Regular Member
(To:StuartBruff)

Hello Stuart,

Yes it works perfectly.

Great, thank you so much for your help.

Miguel,

Announcements
Top Tags