complex number root solving

35 views (last 30 days)
harley
harley on 10 Mar 2014
Answered: Salman Khalaf on 1 Nov 2020
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)

Salman Khalaf
Salman Khalaf on 1 Nov 2020
sols=roots([ 1 0 -i])

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!