MATLAB: I am studying a solar panel using simulink tools and I got the Voltage and Power of the panel in the form of a plot and now I want to find the max value of power during the time of 0.01s which is the simulation time I gave

maximum valuesolar

I have two quantities Voltage and Power of a PV panel in the form of 2 different plots with respect to time and I want to find out the max power from the panel during the simulation time of 0.01s and at the same point of max Power I want to find the value of voltage. Could some one please help me out.
THANKS

Best Answer

If you have the power data for example P=[1.0, 1.3, 1.5, 1.4, 1.0], just use
[Pmax,Imax]=max(P)
Pmax =
1.5000
Imax =
3
You'll get the maximum power value. The index (Imax=3) will tell you at what time it occurred.