Motor A,B,C,D Matrices
% ...... CAMPG-MATLAB MODEL INPUT FILE ......
% .. Generate Symbolic State Space Formulation
% ..... Calculate System Matrices A, B, C , D
u(1,:)=[SE1]; u(2,:)=[0];
% Generation of System matrices
%dp9 = SE1*(1/R2)*(1/G3x4)*(1/T7x8)+
% P9(-(1/I9)*(1/T7x8)*(1/G3x4)*(1/R2)*(1/G3x4)*(1/T7x8)
% -(1/I9)*(1/T7x8)*R6*(1/T7x8)-(1/I9)*R10)
% generate dp9 corresponding A, B row vector
A(1,:)=[(-(1/I9)*(1/T7x8)*(1/G3x4)*(1/R2)*(1/G3x4)*(1/T7x8)...
-(1/I9)*(1/T7x8)*R6*(1/T7x8)...
B(1,:)=[((1/R2)*(1/G3x4)*(1/T7x8)) 0];
% Since theta is another state, the A matrix has another row
A(2,:)=[(1/I9), 0] ; B(2,:)=[0, 0];