I am using Octave on Linux to do some basic Matlab computations and I am getting the error mentioned in the title for the following piece of code:
for a = i:n
aux = U(j,a)/U(a,a);
% L(a,i) = aux;
end
I would like to mention that U is an n by n matrix and i is the index from another outer loop.
Thanks,
Daniel.
Using
iandjas indices in Matlab is not a good practice, since by default they representsqrt(-1). It would seem like eitheriorjare not initialized in your code, hence taking their default complex value.