load('input_data.mat')
newWindPower = (25e3)/(max(windPower))*windPower + windPower;
 
figure(1)
plot(cogenPower,'black','LineWidth',1.7)
hold on
plot(Demand,'r','LineWidth',1.7)
hold on
plot(SPD_813+cogenPower+newWindPower,'b','LineWidth',1.7)
title('813kW of Solar and 61kW of Wind','fontSize',18)
ylabel('Power (MW)','fontSize',14)
xlabel('time (seconds)','fontSize',14)
xlim([0 1441])
legend('Cogen Power','Demand','Microgrid Supply','fontSize',14)
