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

15 次查看(过去 30 天)
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

采纳的回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2018-7-26
编辑:KALYAN ACHARJYA 2018-7-26
matrix(matrix<0)

更多回答(1 个)

Ramesh Kumar
Ramesh Kumar 2020-8-16
Hi

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by