How to use <=, >= logic operators for imaginary part of a complex number?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
James Tursa
il 22 Mag 2018
You can do this explicitly by picking off the imag parts. E.g.,
imag(x) >= imag(y)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Multidimensional Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!