End of an array command

User ForumEnd of an array command
Babi asked 2 years ago


I have a short question. I am translating a code from Matlab to Gauss and there is one Matlab command I cant find in Gauss.

I have a loop that inside has the following:

Y[i,j] = S[i,j]- R[i,i+1:end]*Y[i+1:end,j];

I need to change the "end" part for something useful in Gauss.

In other words, I need to find the command that tells to go till the end of the array.

Thanks in advance.



1 Answers
aptech Staff answered 2 years ago

You can replace end with either rows or cols, like this:

Y[i,j] = S[i,j]- R[i,i+1:cols(R)]*Y[i+1:rows(Y),j];