Check Positive or Negative Infinity

15 visualizaciones (últimos 30 días)
Abdulllah
Abdulllah el 24 de Jun. de 2019
Editada: Abdulllah el 24 de Jun. de 2019
isinf function gives logical true in both cases whether infinity is postivie or negative but does not tell whether infinity is positive or negative. How can I check whether the infinity is positive or negative?
abc=-1*inf;
isinf(abc)

Respuesta aceptada

madhan ravi
madhan ravi el 24 de Jun. de 2019
Editada: madhan ravi el 24 de Jun. de 2019
sign(abc) .* isinf(abc)

Más respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 24 de Jun. de 2019
y=abc>=0 && isinf(abc)

Categorías

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

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by