MATLAB: Could anyone tell me how to select the largest number among all the numbers.

select largest number

could anyone tell me how to select the largest number among all the numbers. for example if i am having (2,6,9,5,1) then how can i select the largest number.

Best Answer

A = [,6,9,5,1];
iwant = max(A)
REad about max