This simple example shows the application of P, I, D alone, and PI, PD, and PID controller to spring-mass-damper model.
Model Equation: mx'' + cx' + kx = F
where,
m = mass of block,
c = damping constant,
k = spring constant
and F is the applied force, x is the resulting displacement of the block
Transfer Function (Laplace Transform of model):
X(s)/F(s) = 1/(ms^2 + cs + k)
Cite As
Yajur Kumar (2024). Spring Mass Damper (https://www.mathworks.com/matlabcentral/fileexchange/64920-spring-mass-damper), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2017b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Assembly in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |