Hello
I am defining inequility for a condition; however, Matlab cannot compare two sides correctly as is attached here. How should I solve this issue?
even matlab says:
-5.4485 >= 1e-6
ans =
logical
0
It is strange!!!!

 採用された回答

James Tursa
James Tursa 2022 年 10 月 23 日
編集済み: James Tursa 2022 年 10 月 23 日

0 投票

Negative numbers are not greater than positive numbers. This is the correct result. What is strange to you about this?

1 件のコメント

Pooneh Shah Malekpoor
Pooneh Shah Malekpoor 2022 年 10 月 23 日
Oo, I had to add an abs in my formula. Now, resolved

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB Mobile Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by