MATLAB
Use the data sample down below to create a function to displaythe max and min y value and the corresponding x value the min andmax occur at in two ways:
1. sort the y column
2. use the min/max function
Here is the data:
No. x y No. x y
1 4.91 8.18 11 0.94 0.21
2 3.84 7.49 12 0.59 1.73
3 2.41 7.11 13 0.69 3.96
4 2.62 6.15 14 3.04 4.26
5 3.78 6.62 15 1.01 6.75
6 0.52 3.30 16 3.60 6.67
7 1.83 2.05 17 4.53 7.70
8 2.01 2.83 18 6.13 7.31
9 0.28 1.16 19 4.43 9.05
10 1.08 0.52 20 4.12 10.95
Display which method is faster.
Your
PayPal Gateway not configured
PayPal Gateway not configured