CAMPGEQ.M
function p_qdot = bgequa(t,p_q)
global i2 r3 c4 se1
% .. System Equations ........
% ...... Define State Variables ......
p2= p_q(1);
q4= p_q(2);
% ...... Define Derivatives and output variables .......
e1 = se1; f2 = p2/i2;
e4 = q4/c4; f3 = f2;
f4 = f2; dq4 = f4;
f1 = f2; e3 = f3*r3;
e2 = e1-e3-e4; dp2 = e2 ;
% ..... Build vector of derivatives
p_qdot = [dp2 dq4];
Previous slide
Next slide
Back to first slide
View graphic version