Effacer les filtres
Effacer les filtres

Check Positive or Negative Infinity

9 vues (au cours des 30 derniers jours)
Abdulllah
Abdulllah le 24 Juin 2019
Modifié(e) : Abdulllah le 24 Juin 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)

Réponse acceptée

madhan ravi
madhan ravi le 24 Juin 2019
Modifié(e) : madhan ravi le 24 Juin 2019
sign(abc) .* isinf(abc)

Plus de réponses (1)

KALYAN ACHARJYA
KALYAN ACHARJYA le 24 Juin 2019
y=abc>=0 && isinf(abc)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by