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
I have a matrix and would like to obtain the product of rowi+1/rowi
How can I do it?
@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:
or even better using
If you need that kind of calculation more often it might be beneficial to define a function:
Or for the Express users amongst us (and it will work in Prime), use Mathcad's submatrix function:
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
