Resources

End of an array command

0

Hi,

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.

 

Barbara

Tags: asked May 2, 2014

1 Answer

0

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];
aptech
342