Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
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

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by