...
For more information on subplots, you can refer yourself to the MATLAB documentation.
Marking Max and Min Locations in Plots
...
Here is an example script that performs this task. Similarly, you can use the min function to find and mark the minimum value.
Recording Max and Min Values in Plots
...