I am trying to run a simulink model which has two PVs connected with grid. The simulation will tun multiple times, the PV irradiance, temperature will be fed to each simulation through running a matlab file which will randomly select the irradiance, temparature and load values. The data will be saved after eaxh simulation. As I am relatively new using Python Script in Opal RT,can anyone suggest me how can I write the MATLAB file in the script and what would be the best way to write the code?
And ,if there is any example available like this , can you share it to me?