Also if i bypass this error I have another errors, for example in this line:
Xn = sum(o_vector,'all');
The debuger says "all" is undefined.
hmmm... looks like matlab's sum added an "all" option in 2018b that hasn't been implemented in Octave yet.
vs
it's the equivalent of sum(A(:)) (sum every element and return a single number output)
probably an easy fix, but it's a compiled function so if a patch is made you'll need to compile it or wait for it to be rolled out with a future version of octave.
for now, you can replace
>> sum(o_vector,'all')
with
>> sum(o_vector(:))
that will work no matter the size or shape of o_vector.