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

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 10 Mär. 2014
Bearbeitet: Azzi Abdelmalek am 10 Mär. 2014

1 Stimme

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

Weitere Antworten (1)

Salman Khalaf
Salman Khalaf am 1 Nov. 2020

0 Stimmen

sols=roots([ 1 0 -i])

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by