T = IsClose(A,B,[tol])
Checks two values to see if they are close within some level of tolerance
Parameters |
Description |
A [vector] |
First value to check |
B [vector] |
Second value to check |
tol [scalar] |
(Optional) Tolerance, defaults to eps. Use zero for == |
Return Values |
Description |
T [logical] |
1 if A and B are close within tol, 0 if they are not. If one is a scalar and the other is a vector, each element of the vector is compared to the scalar value and a logical vector is returned. If both are vectors and size(A)~=size(B), a logical scalar 0 is returned. |
Copyright (c) 2009. All rights reserved.
|
What do you think about this topic? Send feedback!
|