Check Positive or Negative Infinity

12 Ansichten (letzte 30 Tage)
Abdulllah
Abdulllah am 24 Jun. 2019
Bearbeitet: Abdulllah am 24 Jun. 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)

Akzeptierte Antwort

madhan ravi
madhan ravi am 24 Jun. 2019
Bearbeitet: madhan ravi am 24 Jun. 2019
sign(abc) .* isinf(abc)

Weitere Antworten (1)

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

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by