complex number root solving

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

 Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 10 Mar 2014
Edited: Azzi Abdelmalek on 10 Mar 2014
sols=roots([ 1 0 -i])
%or
sols=double(solve('z^2-i'))

More Answers (1)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!