Task

Create a function that returns the maximum value in a provided set of values,

where the number of values may not be known until run-time.




m = max( [1,2,3,20,10,9,8] );       % m = 20
[m, im] = max( [1,2,3,20,10,9,8] ); % im = 4