Verification problem-ab​solute/rel​ative error

2 ビュー (過去 30 日間)
D.J
D.J 2018 年 9 月 3 日
回答済み: D.J 2018 年 9 月 3 日
Hello all, I have 2 sets of data that I need to verify. Although they seem identical to me, but when I verify them, I get many zeros which mean they are not identical. Possibly due to decimal points. I asked around and was told I should use absolute/relative errors, but I have no clue how to use that. Any advice would be highly appreciated.
unfortunately, I can't share my code as it is way to messy and won't make sense to you, but I thought to ask if there is a general advice? Many thanks in advance !

採用された回答

M
M 2018 年 9 月 3 日
Are you working with floating point numbers?

その他の回答 (1 件)

D.J
D.J 2018 年 9 月 3 日
Brilliant ! it worked. Thanks a lot...much appreciated !!

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by