Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

how to remove the highest number from the loop

1 vue (au cours des 30 derniers jours)
Panda Girl
Panda Girl le 7 Déc 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
if (abs_tag0>abs_tag1) && (abs_tag0>abs_tag2)
count_new_tag = abs_tag0;
sci_new = sc0;
elseif(abs_tag1>abs_tag0) && (abs_tag1>abs_tag2)
count_new_tag = abs_tag1;
sci_new = sc1;
else
count_new_tag = abs_tag2;
sci_new = sc2;
end
if (count_new_tag>8)
count_new_tag=1;
end
Here value for abs_tag1 is 16 and abs_tag1, abs_tag2 is 0 and 8 so abs_tag1 is the highest.
I am trying to to remove the value of the highest number from the loop and then perform comparing the remaining two. The highest value is stored in count_new_tag and the number used to perform multiplication operation is in sci_new.
What I am trying to do here is remove the winner from the game and let the remaning one compete for the highest number.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by