Inverted pendulum simulation and animation (output MP4, JPG)

MATLAB tool for simulating and visualizing inverted pendulum (cart-pole) control systems.

https://youtu.be/9meoD0PC3d4?si=xAHqHRSuI8tshMBZ

You are now following this Submission

An intuitive MATLAB tool for simulating and visualizing inverted pendulum (cart-pole) control systems. This package provides real-time animation of the pendulum motion synchronized with comprehensive time-series plots of cart position, pendulum angle, and control input.
Key Features:
- Real-time animated visualization of cart-pole dynamics
- Simultaneous display of state variables and control signals
- Customizable control parameters and target positions
- Educational tool for control theory courses
- Easy integration with custom controllers (PID, LQR, MPC, etc.)
- Clean, publication-ready graphics
Perfect for control engineering education, research demonstrations, and algorithm validation. The visual feedback makes it ideal for teaching classical and modern control concepts. Compatible with MATLAB R2016b and later.
Animation
Explanation
倒立振子の安定化制御(Explanation in Japanese)

Cite As

Hiroshi Okajima (2026). Inverted pendulum simulation and animation (output MP4, JPG) (https://www.mathworks.com/matlabcentral/fileexchange/182938-inverted-pendulum-simulation-and-animation-output-mp4-jpg), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

Add explanation

1.0.0