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.
                
                  
                  
              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 (2025). Modeling and Simulation of Spring Mass Damper System (SMD) (https://in.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 LinuxTags
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 | 
