End of an array command

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

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

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.

FREE REQUEST A QUOTE NOW

Thank you for your interest in the GAUSS family of products.

© Aptech Systems, Inc. All rights reserved.

Privacy Policy | Sitemap