Hello all, I am trying to build a MATLAB level 2 s function which has the following equations.
Info
This question is closed. Reopen it to edit or answer.
Show older comments
State equations x1dot = alpha * cos(x(2)) + u ; x2dot = beta * sin(x(1)) * u^2 ;
Output equations y1 = sqrt ( x(1)^2 + x(2)^2 ) ; y2 = 10 + exp(-0.2 * t) * x(1) ;
Could anyone please tell me how can I incorporate the above equations in MATLAB level 2 s function?
Answers (1)
Joseph Cheng
on 25 Mar 2014
1 vote
See example of writing a level-2 matlab s-function
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!