|MATLAB Function Reference|
Test for equality
A == B
compares each element of array
A for equality with the corresponding element of array
B, and returns an array with elements set to logical 1 (
B are equal, or logical 0 (
false) where they are not equal. Each input of the expression can be an array or a scalar value.
B are scalar (i.e., 1-by-1 matrices), then MATLAB returns a scalar value.
B are nonscalar arrays, then these arrays must have the same dimensions, and MATLAB returns an array of the same dimensions as
If one input is scalar and the other a nonscalar array, then the scalar input is treated as if it were an array having the same dimensions as the nonscalar input array. In other words, if input
A is the number 100, and
B is a 3-by-5 matrix, then
A is treated as if it were a 3-by-5 matrix of elements, each set to 100. MATLAB returns an array of the same dimensions as the nonscalar input array.
is called for the syntax
B when either
B is an object.
Create two 6-by-6 matrices,
B, and locate those elements of
A that are equal to the corresponding elements of
gt, relational operators
|eps||erf, erfc, erfcx, erfinv, erfcinv|
© 1994-2005 The MathWorks, Inc.