How to use trigonometric in state space(ss command)
Afficher commentaires plus anciens
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 commentaires
nl2605
le 13 Mar 2014
You mean one of the coefficients is a function of 'x1'? Is it?
Jay Huang
le 13 Mar 2014
nl2605
le 13 Mar 2014
Wow! that fails me completely! I can't understand either how can we change it.
Jay Huang
le 13 Mar 2014
nl2605
le 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
le 13 Mar 2014
Réponses (0)
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!