complex number root solving

40 次查看(过去 30 天)
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

采纳的回答

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

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by