is there a function that returns the real root from a matrix that contains the roots of a function ?

1 Ansicht (letzte 30 Tage)
i want to return the real root from a vector contains the roots of a function, this vector contains both imaginary and real roots

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Apr. 2013
If R is the vector of roots, then
R(imag(R) == 0)

Weitere Antworten (0)

Kategorien

Mehr zu Elementary Math finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by