I want to create a STATE SPACE function. I have converted higher order differential into first order differential. but I am not able to form matrix A(state matrix) and matrix B(input/control matrix) from the equations. Please help
3 views (last 30 days)
Show older comments
function zp = statespace(t,z);
zp(1) = z(2);
zp(2) = w/m - c*z(2)/m - k*[z(1)*cos(phi(i)) + z(3)*sin(phi(i))].^(3/2);
zp(3) = z(4);
zp(4) = - c*z(4)/m - k*[z(1)*cos(phi(i)) + z(3)*sin(phi(i)) ].^(3/2);
0 Comments
Answers (0)
See Also
Categories
Find more on Numerical Integration and Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!