You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This code outputs the coefficients of up to three segments of a minimum-time trajectory between two states (position and velocity), subject to velocity and acceleration constraints. In some cases, the resulting trajectory will be a bang-bang trajectory, with up to two quadratic segments, each with maximum acceleration in one direction. If the distance between the two states is large, a middle linear segment will be needed as well, at maximum velocity. The code contains an optional plot of the complete trajectory, and outputs the coefficients and switch times needed to compute the state at any time.
Note that this code
Cite As
Eric Young (2026). Minimum-Time Trajectory Calculation (https://in.mathworks.com/matlabcentral/fileexchange/67351-minimum-time-trajectory-calculation), MATLAB Central File Exchange. Retrieved .
Categories
Find more on Quadratic Programming and Cone Programming in Help Center and MATLAB Answers
General Information
- Version 1.1.0.0 (4.15 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
