image thumbnail

SimMechanics pendulum used for control optimization

by

 

31 Aug 2010 (Updated )

Pendulum imported via SimMechanics generates dynamics for optimal dampening solved by DIDO.

a=SimMechanics1Event(x)
function a=SimMechanics1Event(x)
a=[x.states(1,1); x.states(2,1);...
    x.states(1,end); x.states(2,end)];

Contact us