MATLAB
Introduction to MATLAB
Matlab is an environment for technical computing. It is used for data analysis,
simulation, and algorithm development. This video will cover the basics of working in
MATLAB.
Calculating Solar Panel Energy Production
We start by calculating the energy production of solar panels using a theoretical model.
We input the latitude and solar declination angle for June 21st, the longest day of the
year. We then calculate the angle between the sun and the panels and the intensity of
radiation due to the angle of the sun. We use MATLAB's built-in functions for
trigonometric calculations. We then plot the data to show the theoretical maximum
production we should get from our solar panels.
Importing and Analyzing Data
We import data from a spreadsheet that contains the recorded production for June
2018. We use the plot function to visualize the data and explore it using MATLAB's
interactive tools. We then rearrange the data to a grid of times and days to extract the
data for any given day. We plot the data for the 21st and compare it to the theoretical
model.
Conclusion
By the end of this video, you should have a basic understanding of how MATLAB works
and be able to calculate and analyze data. To learn more about MATLAB, refer to the
documentation or take an online course.
When analyzing solar panel data, it's important to take into account the limitations of the
inverters that convert the energy. By adding this limiting behavior to our theoretical
model, we can accurately predict the data and share our findings with others.
To share our work, we can save a copy of the script as a PDF or share it along with the
data file for others to reproduce our results and perform their own analysis.