how to separate positive and negative integer

2 visualizaciones (últimos 30 días)
Ali
Ali el 11 de Jun. de 2020
Comentada: Walter Roberson el 11 de Jun. de 2020
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 comentario
Walter Roberson
Walter Roberson el 11 de Jun. de 2020
you do not have any integers at all? you have complex values?

Iniciar sesión para comentar.

Respuesta aceptada

madhan ravi
madhan ravi el 11 de Jun. de 2020
Positive = r(imag(r)>0)
Negative = r(imag(r)<0)

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by