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

8 ビュー (過去 30 日間)
telmo egues
telmo egues 2018 年 7 月 26 日
回答済み: Ramesh Kumar 2020 年 8 月 16 日
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 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 7 月 26 日
Actually what you want? You want to detect negative value.

サインインしてコメントする。

採用された回答

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 Center および File ExchangeDynamic System Models についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by