Hello all, I am trying to build a MATLAB level 2 s function which has the following equations.

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?

This question is closed.

Asked:

on 25 Mar 2014

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!