Effacer les filtres
Effacer les filtres

how to convert model from continuous state space with disturbance to discrete

47 vues (au cours des 30 derniers jours)
asemeh
asemeh le 5 Oct 2015
Commenté : C.J. Harris le 5 Oct 2015
I try to convert my model from continuous state space with disturbance to discrete state space model .
A =[-0.0009569 0 0 0 0 0 ;0 -0.0009569 0 0 0 0 ;0.02203 0 -0.04225 0 0 0 ;0 0 0 -0.04225 0 0 ;0 0 0 0 -0.03659 0; 0 0 0.04333 0.04333 0.04333 -0.04762];
B =[0 0;3.684e0-5 0; 0 0; 0 0.02102; 0 0; 0 0];
K=[0.001152 0;0 0;0 0; 0 0; 0 0.001409; 0 0];
C =[1 1 0 0 0 0 ;0 0 0 0 0 1];
D=zeros(2,2);
please give me some suggestion . Thanks

Réponses (1)

C.J. Harris
C.J. Harris le 5 Oct 2015
% Create state space model
sys = ss(A,B,C,D);
% Convert to discrete, where dt is your discrete time-step (in seconds)
d_sys = c2d(sys,dt);
  2 commentaires
asemeh
asemeh le 5 Oct 2015
Dear Hrris Thanks for answer , this code for simple state space model . but as you see my model has a (6*2)matrix disturbance , my problem about disturbance .
C.J. Harris
C.J. Harris le 5 Oct 2015
From 2012a onwards you can use the idss command:
sys = idss(A,B,C,D,K,x0,Ts)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Dynamic System Models dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by