MATLAB: Complex number root solving

complexed numbers

trying to use matlab to solve some complex numbers, as a basic example how does one command matlab to find all the roots of;
z^2 – i = 0

Best Answer

sols=roots([ 1 0 -i])
%or
sols=double(solve('z^2-i'))
Related Question