How to use trigonometric in state space(ss command)

Hello everyone, I am a student studying nonlinear control I am stuck on how to switch -x1 at the last line into -sin(x1) Can anyone kindly tell me how to achieve it? Tons of thanks :)
% code
A=[0 1;-1 -2];
B=[0 0;0 5];
C=[1 0];
D=0;
T=ss(A,B,C,D)
tf(T)
step(tf(T),15);

6 Comments

You mean one of the coefficients is a function of 'x1'? Is it?
yeah. In simple, the original is x2'=x1 now I want x2'=sin(x1) but I have no idea how to change it at ss
Wow! that fails me completely! I can't understand either how can we change it.
It is doable if we just use ode45. I still want to know it XD. Thanks for your answering though!
You could do it using ode45?? How? Could you throw some light? Or do you just know that it can be done but not how!
I has just done it yesterday. referring to This vid

Sign in to comment.

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Products

Asked:

on 13 Mar 2014

Commented:

on 13 Mar 2014

Community Treasure Hunt

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

Start Hunting!