Hi
I built a model in SAM using the Generic-Residential model. The inputs contain the PV generation and an input battery dispatch for 1 year. After running the simulation in SAM, I can see hourly data for the variables "Electricity to/from grid" and "Electricity to/from battery". Next, have generated the Matlab code in order to run this model in Matlab and get the variables mentioned before. What code should be written in Matlab to get such variables?
Thank you.