I want to select a row vector ‘NS’ with maximum ‘newResultTF’ value when some of these row vectors are not considered for evaluation which appears in a certain list ‘TM’.
For example, I have a five row vectors under variable ‘NS’
NS(:,:,1) = 6 1 1 1 1NS(:,:,2) = 5 3 1 1 1NS(:,:,3) = 5 1 8 1 1NS(:,:,4) = 5 1 1 3 1NS(:,:,5) = 5 1 1 1 7
And their fitness values are under variable ‘newResultTF’
newResultTF(:,:,1) = 104newResultTF(:,:,2) = 101newResultTF(:,:,3) = 95newResultTF(:,:,4) = 103newResultTF(:,:,5) = 89
Restricted row vector are under variable ‘TM’
TM(:,:,1) = 6 1 1 1 1TM(:,:,2) = 5 1 8 1 1
Now I want to select row vector ‘NS’ with maximum ‘newResultTF’ value except vectors in ‘TM’. For example in this case the selected vector is
NS(:,:,4) = 5 1 1 3 1With maximum ‘newResultTF’ valuenewResultTF(:,:,4) = 103
Please help. Thanks in anticipation!
Best Answer