Week 8 Challenge
The complete model is as given below,

In the Ultracapacitor subsystem ,current and voltage calculation subsystem and SOC calculation subsystem is
In the charge and voltage calculation subsystem ,the current ,voltage,open circuit voltage and charge calculation subsystem is formed.

Input to the current subsystem is power demand from the signal buider and feedback from the SOC.

Then the SOC calcualtion also done here by using the below formula.

The input to OCV subsystem is current.The Open circuit voltage is calculated by using the formula.

Voltage calculation is given below,


Note: The signal builder block is no longer available in Matlab library, Not able to run the simulation for 600sec, I tried for 100Sec.