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 CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by