Main Content
fixed.unifiedErrorCalculator.relativeAbsoluteError
Syntax
Description
fixed.unifiedErrorCalculator.relativeAbsoluteError(
returns the relative absolute error between the approximate value
approxValue
,refValue
)approxValue
and the reference value refValue
given by abs(refValue-approxValue)/abs(refValue)
.
fixed.unifiedErrorCalculator.relativeAbsoluteError(
specifies whether to keep the calculated error as approxValue
,refValue
,keepNaN
)NaN
. By default, to
indicate the calculated error is significant, the function returns Inf
if
the calculated error is NaN
.
Examples
Input Arguments
Version History
Introduced in R2023b