A=rand(15,10); B=any(A(8,:))==max(A); B= 0 0 0 0 0 0 0 0 0 0
MATLAB: I’m trying to compare components of an array using relational operators, and the outcome needs to be either true or false. My result is a row vector of logicals; how do i make sure the result is just a single 1 or 0
value true
Best Answer