Project 1
Create a stateflow or Simulink model for the following flowchart.
Load the .mat file into the workspace.
The input to the model would be the power demand.
The output should be:
- Fuel cell power
- Battery power
- FC Operating state (running, standby)
Create plot of these outputs against time.

Solutions
logic which is been told to develop in this is that if the Power demand from the vehicle is less than the minimum FC power than the FC must go on standby and the power should be supplied from the battery storage system and if the power demand is greater than the min FC power than the FC should be used and if the power demand of vehicle is fore than the max power of FC than the Battery should supply the power
Minimum power:0to1500W,Operating stage:1000to1500W,Max power:1400to1500W
project

signal Builder block is used as the input to give the power demand required by the vehicle , the simulation ran and the output such as FC Power , Battery Power and FC status are been studied by connecting it to the scope
The subsystem

interval test block are used for setting the limits of the FC minimum , maximum and operation region , the limits are been set as discussed above. Then as per logic the switch block are been set and the output is been connected to FC or battery as mentioned in flowchart
Signal builder block

Result scope displaying FC power , battery power, Fuel cell status and actual power demand

From the results its clear that the logic which is been developed is full proof and working proper as per the logic defined