How to use <=, >= logic operators for imaginary part of a complex number?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
James Tursa
2018-5-22
You can do this explicitly by picking off the imag parts. E.g.,
imag(x) >= imag(y)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Analytics Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!