MATLAB: FETCH LARGEST NUMBERS

comparelargest numbers

I HAVE A SET OF 10 NUMBERS .
AND I WANT THE OUT PUT TO BE THE LARGEST THREE NUMBERS FROM THE ABOVE SET……. THANKS IN ADVANCE

Best Answer

  • 1. Take the capslock off.
    2. Sort your array in descending order. Use the SORT function.
    3. Take the first 3 numbers in the sorted array.