Effacer les filtres
Effacer les filtres

How do i check a value is negative and make it into a condition?

15 vues (au cours des 30 derniers jours)
telmo egues
telmo egues le 26 Juil 2018
Hi, I want to compare a value introduces in a matrix and depending on its' sign, make a condition. Is there any function or code to check if a value is negative or not?
Thanks in advance
  1 commentaire
KALYAN ACHARJYA
KALYAN ACHARJYA le 26 Juil 2018
Actually what you want? You want to detect negative value.

Connectez-vous pour commenter.

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 26 Juil 2018
Modifié(e) : KALYAN ACHARJYA le 26 Juil 2018
matrix(matrix<0)

Plus de réponses (1)

Ramesh Kumar
Ramesh Kumar le 16 Août 2020
Hi

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by