MATLAB Answers

State Space with Disturbance

19 views (last 30 days)
Azaldo Machava
Azaldo Machava on 21 Jan 2021
Answered: Paul on 21 Jan 2021
I have this system:
Xdot = AX +Bu +Fd,
where A,B and F are the system, input distribution and disturbance distribution matrices respectively and X, U and d are the state, control and disturbance vectors respectively.
i have all the matrices data. i want to know how to use matlab to plot the state variables for a step disturbance.
where i am finding problem is because the standard form of state space in matlab is :Xdot = AX +Bu without the distubance vector.
so how do i input my system in Matlab???

  0 Comments

Sign in to comment.

Answers (1)

Paul
Paul on 21 Jan 2021
Combine d and u into a single input vector:
Xdot = A*X + [B F] * [u;d]
y = C*X + [D 0]*[u:d] % assuming the disurbance doesn't feed directly into output
sys = ss(A,[B F],C,[D zeros(size(C,1),size(F,2))])

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!