How do i check a value is negative and make it into a condition?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
telmo egues
am 26 Jul. 2018
Beantwortet: Ramesh Kumar
am 16 Aug. 2020
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 Kommentar
Akzeptierte Antwort
KALYAN ACHARJYA
am 26 Jul. 2018
Bearbeitet: KALYAN ACHARJYA
am 26 Jul. 2018
matrix(matrix<0)
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Dynamic System Models finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!