for example…
X = [1 2 3 4 5 6 7 8 9; 2 3 4 5 6 7 8 9 1; 3 4 5 6 7 8 9 1 2; 4 5 6 7 8 9 1 2 3; 5 6 7 8 9 1 2 3 4];I want to find values which are bigger than 7 and smaller than 3 in each rows.And also I have to save the data, index of values.when I made a code like blew,for k =1:m [row(k) col(k)]=find((X(k,:) > 7) && (X(k,:) < 3));end
there is an error "Operands to the and && operators must be convertible to logical scalar values."
please… help me
Best Answer