isapprox
Description
determines which corresponding elements in the two input arrays are approximately equal and
returns a logical array. TF = isapprox(A,B)TF contains 1
(true) where the corresponding elements are within the region of approximate
equality, and 0 (false) otherwise. The
default relative and absolute tolerances are both 1e-15, or if
A or B is of type single,
5e-7.
specifies options using one or more name-value arguments. For example,
TF = isapprox(A,B,Name=Value)isapprox(A,B,RelativeTolerance=1e-10) determines approximate equality
using the specified relative tolerance and an absolute tolerance of
0.
Examples
Input Arguments
Name-Value Arguments
Algorithms
Version History
Introduced in R2024b
See Also
eq | isequal | ismembertol | verifyEqual | eps | uniquetol