The electrical model of the pv is being made and the voltage rating is kept above 12v. Then using a buck converter the voltage is stored in a battery stack of 12v. The dc voltage is given to a five level switch inverter (open loop) and is converted to ac form. The inverter topology selected contains less number of switches and the output is obtained.
JISHA R KRISHNAN (2020). solar battery system with inverter (https://www.mathworks.com/matlabcentral/fileexchange/69121-solar-battery-system-with-inverter), MATLAB Central File Exchange. Retrieved .