I have used to maximum block to identify the maximum out of two input vectors, and the maximum value changes based on the instantaneous value of the higher signal, but how do I find the maximum value it reaches over the simulation period? For example, I'm calculating the temperature and I want the highest value it reaches across 2 seconds of the simulation.