Week 8 Challenge
Ultracapacitor is implemented in SImulink environment as shown below

A UDDS drive cycle is given as power input to ultracapacitor.
UC is modelled using basic equations as shown below

The variables are initialized using initfunction

Three main blocks are highlighted which calculates current, voltage and SOC.
Simulation results are
