Hi r/matlab - I'm the maintainer of MATLAB Simulink Energy Lab, a small open-source collection of energy-system examples designed to be opened, inspected, modified, and questioned.
The current release includes:
- a first-order battery RC model driven by pulse-current data;
- an averaged converter calculation for output voltage, load current, and ripple;
- lightweight no-plot validation checks; and
- explicit parameters, units, assumptions, and limitations.
The examples currently run in base MATLAB. They are deliberately understandable reference implementations, not calibrated production models; native Simulink versions are on the roadmap.
Repository:
https://github.com/mohammadrezwankhan/matlab-simulink-energy-lab
I would especially value technical feedback on three questions:
Which assumption or parameter needs clearer documentation?
What validation plot or dataset would make the examples more useful?
What should come next: temperature-aware battery dynamics, closed-loop converter control, or an averaged-versus-switched comparison?
If the repository is genuinely useful to you, a star helps other MATLAB learners find it. Issues and focused contributions are equally welcome.
Disclosure: This post was drafted with help from ChatGPT/Codex. I maintain the repository and reviewed the technical claims and wording before posting.