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

7 visualizaciones (últimos 30 días)
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

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 26 de Jul. de 2018
Editada: KALYAN ACHARJYA el 26 de Jul. de 2018
matrix(matrix<0)

Más respuestas (1)

Ramesh Kumar
Ramesh Kumar el 16 de Ag. de 2020
Hi

Categorías

Más información sobre Dynamic System Models en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by