Info
This question is closed. Reopen it to edit or answer.
How to put 3 data in loop to determine which is greatest
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!