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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Retrive horizontal matrix rows based on vector in Mathcad

MC_9370533
8-Gravel

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).

MC_9370533_1-1653309709607.png

Is there a simple way to do this?

 

Thanks in advance for your help.

 

Miguel,

ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald III
(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).

MC_9370533_1-1653309709607.png

Is there a simple way to do this?,


Is this of any help, Miguel?

 

2022 05 23 a.png

 

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

View solution in original post

3 REPLIES 3
StuartBruff
23-Emerald III
(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).

MC_9370533_1-1653309709607.png

Is there a simple way to do this?,


Is this of any help, Miguel?

 

2022 05 23 a.png

 

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

Hello Stuart,

 

Yes it works perfectly.

 

Great, thank you so much for your help.

 

Miguel,

 

Announcements

Top Tags