Skip to main content

2 replies

23-Emerald I
May 8, 2024

To Mathcad a vector is a column of numbers, not a row!

Fred_Kohlhepp_0-1715169473652.png

 

 

14-Alexandrite
May 8, 2024
Thank you for replying

25-Diamond I
May 8, 2024

You try to access "min" with just one single matrix index (i-1 in your example). This is only allowed for (column) vectors (= n x 1 matrices) because here it is clear that the index means the row as there is only one column.

In your sheet "min" is a 24 x 9 matrix, so you need two indices (row and column) to access one of its elements.

As you are only using one index, Primes error message tells you that this is only allowed if min is a vector (= a matrix with just one column).

14-Alexandrite
May 8, 2024
I see
Actually what I’m trying to do is to apply the function of the Area in the columns in the min matrix.
I want it to calculate by column because each column contains the values of separate factor.
The first column is the first pile
And I want Mathcad to calculate The area in the first column separately.
İf it goes by rows it will confuse the values of different piles


25-Diamond I
May 8, 2024

I don't know what you are trying to calculate, but I notice that you are using indices i-1 and i+1 which will be beyond the allowed range if i is the number of the first column (O) or the number of the last column.