Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
how to remove the highest number from the loop
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!