Modeling and Simulation of Spring Mass Damper System (SMD)

Version 1.0.0 (65.7 KB) by Rzi Abbas
The files define sn SMD system, Autotune a PID controller for it and then after modeling through 3 different methods, simulate it.
413 Downloads
Updated 2 Sep 2021

View License

Modeling and Simulation of SMD system through 3 different ways.
The first section defines the Mass, Damping Constant and Spring Constant. Then the second section creates the SMD system and autotune a PID controller for tuning goals defined in the autotuner. You may change the tuning goals by going to 'SMD_Simulink_AutoTuning.slx' and then in the Closed-loop PID Autotuner block.
The thrid section models the SMD using three different ways, namely through Mathematical Model, Simscape Model and Multibody Model, and then simulate all three models using the autotuned PID controller. The simulation results show that models created through all three different methods produce perfectly similar results.

Cite As

Rzi Abbas (2024). Modeling and Simulation of Spring Mass Damper System (SMD) (https://www.mathworks.com/matlabcentral/fileexchange/98689-modeling-and-simulation-of-spring-mass-damper-system-smd), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with R2018a to R2021a
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0