How to use <=, >= logic operators for imaginary part of a complex number?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Fred
le 22 Mai 2018
Réponse apportée : James Tursa
le 22 Mai 2018
Hello,
I have a question regarding how can I apply (<= or >=) logic operators for imaginary part of a complex number. MATLAB documentation says x >= y is equal to real(x)>=real(y), if x y are complex, but I want to compare imaginary parts as well. Is there any way I can do that in MATLAB?
Thanks,
0 commentaires
Réponse acceptée
James Tursa
le 22 Mai 2018
You can do this explicitly by picking off the imag parts. E.g.,
imag(x) >= imag(y)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Text Analytics Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!