I have a problem accessing the element of a vector in octave:
>> den = [1 2 1 2]
>> poles = roots(den)
>> poles =
-2.00000 + 0.00000i
0.00000 + 1.00000i
0.00000 - 1.00000i
>> poles(2)
ans = 4.1633e-016 + 1.0000e+000i
Instead of returning 0 + 1i, it returns 4.1633e-016 + 1.0000e + 000i. Why?
how can I solve that?