discretizing a continuous state-space model
99 views (last 30 days)
Show older comments
How can I discretize this state-space model using MATLAB:
x°(t)=Ax(t)+BU(t)+g
1 Comment
Souarv De
on 30 May 2022
%% STEP 1: Continuous State Space Model (CSSM)
sys = ss(A,B<C<D);
%% Convert CSSM to Discrete State Space Model (DSSM)
sys_dis = c2d(sys,Ts); % Where Ts is the sampling period
Answers (1)
Wooshik Kim
on 5 Jul 2018
Edited: Wooshik Kim
on 5 Jul 2018
you can use ss function to create a discrete state space model
discreteSys = ss(A,B,C,D,Ts)
you should also linearize the state space equation with respect to equilibrium point.
0 Comments
See Also
Categories
Find more on Dynamic System Models in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!