www.pudn.com > STATCOM_BESS.rar > plot_non_linear_with_battery.m, change:2012-11-07,size:586b


clc; clear all; close all;  
Peo=0.2; Pg=0.8; Ppv=0.3; Pfc=0.3; Load=0.8; QLoad=0.15; 
 
[Statevar]=Initial_values_with_statcom(Peo,Pg,Ppv,Pfc,Load);% calculates the initial conditions 
timerange=[0 10]; 
[t,x]=ode45('non_linear_36states_unstable_with_battery',timerange,Statevar); 
 
figure(1); 
plot(t,x(:,1)*180/pi,'b','Linewidth',2); 
grid on; 
xlabel('Time (s)-->>'); 
ylabel('Delta(degrees)-->>'); 
title('Delta vs Time'); 
 
figure(2) 
title('Plot of speed w against time'); 
plot(t,x(:,2),'r','Linewidth',2); 
grid on; 
xlabel('Time (s)-->>'); 
ylabel('omega(radians/sec)-->>');