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

1 visualización (últimos 30 días)
i want to return the real root from a vector contains the roots of a function, this vector contains both imaginary and real roots

Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de Abr. de 2013
If R is the vector of roots, then
R(imag(R) == 0)

Más respuestas (0)

Categorías

Más información sobre Elementary Math en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by