git404hub

what is matlab-simulink-energy-lab fr?

mohammadrezwankhan/matlab-simulink-energy-lab — explained in plain English

Analysis updated 2026-05-18

4MATLABAudience · researcherComplexity · 3/5LicenseSetup · moderate

tl;dr

A collection of runnable MATLAB and Simulink examples modeling battery behavior and power converters, each with built-in validation checks.

vibe map

mindmap
  root((Energy Lab))
    What it does
      Runnable battery models
      Power converter models
      Built-in validation checks
    Tech stack
      MATLAB
      Simulink
    Use cases
      Battery voltage and SOC study
      Controller comparison
      Thermal feedback modeling
    Audience
      Students
      Energy engineering researchers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Study how a battery's voltage and state of charge respond to charge and discharge pulses using a runnable model.

VIBE 2

Compare open-loop, PI, and filtered-PID control strategies on the same buck converter model.

VIBE 3

Learn how battery heat generation and temperature feedback affect performance over time.

VIBE 4

Validate a native Simulink block diagram against an equivalent script-based model.

what's the stack?

MATLABSimulink

how it stacks up fr

mohammadrezwankhan/matlab-simulink-energy-labparthsareen/controls-projectsjohnzja/rydbergcomms
Stars411
LanguageMATLABMATLABMATLAB
Last pushed2022-04-06
MaintenanceDormant
Setup difficultymoderatemoderatehard
Complexity3/53/55/5
Audienceresearcherresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires MATLAB, and Simulink for four of the eleven validation checks.

MIT license: use, modify, and share freely, including commercially, as long as you keep the copyright notice.

in plain english

MATLAB Simulink Energy Lab is a growing collection of small, runnable examples for learning how battery and power-converter systems behave, aimed at students, researchers, and hobbyists. Each example is a self-contained MATLAB model with built-in checks so you can see whether it is working correctly, and every parameter and assumption behind the math is meant to be traceable rather than hidden. The examples cover several related topics. There are battery models that simulate how terminal voltage and state of charge change during charge and discharge pulses, starting with a simple first-order model and moving up to a two-branch model that separates fast and slow internal polarization effects. A thermal model builds on this by tracking how electrical losses and heat generated inside the battery raise or lower its temperature over time, and how that temperature feeds back into resistance. Several of these battery models also have native Simulink block-diagram versions that are checked against the plain script versions to confirm they behave the same way. On the power-electronics side, the repository includes models of an averaged buck converter, meaning a simplified model of a circuit that steps voltage down, along with a closed-loop version that compares open-loop, PI, and filtered-PID control strategies for handling sudden load changes, and a switching-level model that compares ideal pulse-width-modulated waveforms against the averaged estimates. To try it, you clone the repository and run a batch of MATLAB check scripts, seven of which only need base MATLAB while four also require Simulink. Running these produces printed output confirming state of charge, voltage ranges, temperatures, and controller performance numbers, which you can compare against the expected results shown in the README. The project has GitHub Actions set up to automatically rerun these validation checks whenever the model code changes, and it is released under the MIT license.

prompts (copy fr)

prompt 1
Clone matlab-simulink-energy-lab and walk me through running the battery RC model check.
prompt 2
Explain what the two-RC battery model in this repo is simulating and why it separates fast and slow polarization.
prompt 3
Help me compare the PI and filtered-PID controller results from the converter examples in this repo.
prompt 4
Show me how the thermal model in this repo links electrical losses to battery temperature.

Frequently asked questions

what is matlab-simulink-energy-lab fr?

A collection of runnable MATLAB and Simulink examples modeling battery behavior and power converters, each with built-in validation checks.

What language is matlab-simulink-energy-lab written in?

Mainly MATLAB. The stack also includes MATLAB, Simulink.

What license does matlab-simulink-energy-lab use?

MIT license: use, modify, and share freely, including commercially, as long as you keep the copyright notice.

How hard is matlab-simulink-energy-lab to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is matlab-simulink-energy-lab for?

Mainly researcher.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.