![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1631211/image.png)
How to add a disturbance in a state-space model? in Simulink
30 views (last 30 days)
Show older comments
When you have the linear model ẋ=Ax+bu+ep, y=cx+dy+fe.
With c=(1 0), d=0, f=0
0 Comments
Answers (1)
MULI
on 29 Feb 2024
Hey Aylinne,
If you are planning to add disturbance to the existing state space model, augment the matrices B, D in the “State-Space” block as follows:
B= [B E];
D= [D F];
And while giving inputs use a “Mux” to give input and the disturbance.
Here I am attaching the screenshot regarding its implementation in Simulink.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1631211/image.png)
Also, you may refer to this answer which addresses the similar query.
Hope this answer calrifies your query!
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!