Skip to main content
1-Visitor
November 9, 2015
Question

9x1 matrix

  • November 9, 2015
  • 2 replies
  • 1891 views

Hi,

I am calculating COG of a stack of 9 elements. I want to create a 9x1 matrix where the first row contains cog of all element above element 1, row 2 contains cog of all elements above element 2 - and so on. I have solved this by making a 9x1 matrix and putting in the cog formula in every single cell. I do not like this because it takes up so much space and it looks quite bad. Is there a way of telling Mathcad that "i" should increase by 1 in each row such that my expression can be expressed in 1 line? Or is there another neater way of achieving the same goal?

Another thing could be that Mathcad will only show row 1 to 9, and that the other ones will be visible when I edit that matrix, but I can't find an option for that either.

1.png

2 replies

1-Visitor
November 9, 2015

There are probably a number a ways this can be achieved. You could use a For Loop which would reduce the space within the worksheet

Please post the worksheet.

Mike

19-Tanzanite
November 9, 2015

Try:

g0.PNG

Alan

elund1-VisitorAuthor
1-Visitor
November 9, 2015

Thank you, exactly what I wanted