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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Translate the entire conversation x

Matrix functions

RB_14365337
2-Explorer

Matrix functions

I have a matrix and would like to obtain the product of rowi+1/rowi

 

How can I do it?

3 REPLIES 3
Werner_E
25-Diamond I
(To:RB_14365337)


@RB_14365337 wrote:

I have a matrix and would like to obtain the product of rowi+1/rowi


Product? Rather quotient or ratio, right?

As your vector omega consists of 50 elements, the vector of quotients obviously can only consist of 49 elements.

So the job could be done that way:

Werner_E_0-1761585639638.png

or even better using

Werner_E_1-1761585672256.png

 

If you need that kind of calculation more often it might be beneficial to define a function:

Werner_E_2-1761585834781.png

 

 

 

 

StuartBruff
23-Emerald IV
(To:Werner_E)

Or for the Express users amongst us (and it will work in Prime), use Mathcad's submatrix function:

 

2025 10 27 A.png

 

Stuart

Hi @RB_14365337,

 

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation. 

 

Thanks,
Anurag 

Announcements

Top Tags