Clear Filters
Clear Filters

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

1 view (last 30 days)
i want to return the real root from a vector contains the roots of a function, this vector contains both imaginary and real roots

Accepted Answer

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

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!