samples = [
.6 .1 .8
.2 .98 .96
.45 .4 .87 ];
genes = [1;2;10];
%A=(<=.4)
A = genes(any(samples<=.4,2))
%B=>.4 to .87
B = genes(any(samples>=.4 & samples<.87 ,2))
%C=>.87
C = genes(any(samples>=.87,2))
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!