Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
Panda Girl
Panda Girl el 6 de Dic. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by