2 4 6
8 10 12B = [5 5 5; 9 9 9]B =5 5 5
9 9 9A < Bans =1 1 0
1 0 0Similarly, you can compare one of the arrays to a scalar.A > 7ans =0 0 0
1 1 1If you compare a 1 -by-N row vector to an M-by- 1 column vector, then MATLAB expands
each vector into an M-by-N matrix before performing the comparison. The resulting matrix
contains the comparison result for each combination of elements in the vectors.A = 1:3A =1 2 3B = [2; 3]B =2
3A >= Bans =2 Program Components