Mass spring damper system with control input

This is a simple example that shows how to use ode45 to integrate a system of two differential equations. The script plots the solutions.
193 Downloads
Aktualisiert 27. Jan 2021

Lizenz anzeigen

In this example, the integration of two first-order differential equations is performed via ode45. The state-space representation corresponds to a mass-spring-damper system. The model also captures the action of an external control force. This basic script can be used as the skeleton to construct an active suspension control system, for example.

Zitieren als

Humberto Ramos (2025). Mass spring damper system with control input (https://www.mathworks.com/matlabcentral/fileexchange/86423-mass-spring-damper-system-with-control-input), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2020b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0