Question: sum in for loop


Within a for-loop I want to sum a column for a matrix, but using the column number j gives a error:

"Error, (in tools/add) bad index into Matrix"



for j from 1 to J do


Y[1, j] := sum('X[i,j]', i = 1 .. n)


end do


Any solutions? Thanks!

Please Wait...