フィルターのクリア

How to use <=, >= logic operators for imaginary part of a complex number?

2 ビュー (過去 30 日間)
Fred
Fred 2018 年 5 月 22 日
回答済み: James Tursa 2018 年 5 月 22 日
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,

採用された回答

James Tursa
James Tursa 2018 年 5 月 22 日
You can do this explicitly by picking off the imag parts. E.g.,
imag(x) >= imag(y)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by