How to use trigonometric in state space(ss command)
Show older comments
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
nl2605
on 13 Mar 2014
You mean one of the coefficients is a function of 'x1'? Is it?
Jay Huang
on 13 Mar 2014
nl2605
on 13 Mar 2014
Wow! that fails me completely! I can't understand either how can we change it.
Jay Huang
on 13 Mar 2014
nl2605
on 13 Mar 2014
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!
Jay Huang
on 13 Mar 2014
Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!