Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
i want to return the real root from a vector contains the roots of a function, this vector contains both imaginary and real roots

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by