how to separate positive and negative integer

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

댓글 수: 1

you do not have any integers at all? you have complex values?

댓글을 달려면 로그인하십시오.

 채택된 답변

madhan ravi
madhan ravi 2020년 6월 11일

0 개 추천

Positive = r(imag(r)>0)
Negative = r(imag(r)<0)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

Ali
2020년 6월 11일

댓글:

2020년 6월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by