Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How to put 3 data in loop to determine which is greatest

1 visualizzazione (ultimi 30 giorni)
Panda Girl
Panda Girl il 6 Dic 2018
Chiuso: MATLAB Answer Bot il 20 Ago 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
reconstructed_spreaddata_cHere I am comparing abs_Tag0, abs_tag1, abs_tag2 and storing their values in count_new_tag and their multiplication in sci_new
My agenda is to use the related abs_tag0/1/2 and the respective sci_new (i.e sc0/1/2) values in the reconstructed_spreaddata_code2 line
suppose in the first round I come to know that abs_tag1 has highest value out of abs_tag0 and abs_tag2 I would want to elliminate that data from the next loop and will perform exact operation with the remaining data. How should i solve this situation. Kindly help

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by