how to separate positive and negative integer

2 次查看(过去 30 天)
how to separate positive and negative integers
r =
0.0353 + 1.9421i
0.0353 + 1.9428i
0.0353 + 1.9436i
0.0353 + 1.9443i
0.0353 + 1.9450i
0.0353 + 1.9458i
0.0353 + 1.9465i
0.0354 + 1.9472i
0.0354 + 1.9479i
0.0354 + 1.9487i
0.0353 - 1.9421i
0.0353 - 1.9428i
0.0353 - 1.9436i
0.0353 - 1.9443i
0.0353 - 1.9450i
0.0353 - 1.9458i
0.0353 - 1.9465i
0.0354 - 1.9472i
0.0354 - 1.9479i
0.0354 - 1.9487i

采纳的回答

madhan ravi
madhan ravi 2020-6-11
Positive = r(imag(r)>0)
Negative = r(imag(r)<0)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by