How to find values which are in specific range for each rows in matrix...?
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Mathematics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!