End of an array command


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 Answer


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

You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy