sysmodel.m 366 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
function [SysC] = sysmodel()
l = 1.1;
g = 9.80665;
g1 = 0.44; 
g2 = 10/(pi/4);
g3 = g;
g4 = 5/7;
g5 = 10/(l/2);
g34 = -g3*g4;
A = [ 0  1   0; 0  0 g34; 0  0   0; ];
B = [ 0; 0; g1; ];
C = [ g5  0  0; 0  0 g2 ];
SysC = ss(A, B, C, []);
SysC.InputName= {'AngularVelocityV'};
SysC.OutputName= {'PositionV', 'AngleV'};
SysC.StateName= {'Position', 'Velocity', 'Angle'};