GenTraj.m
[Y,T]=GenTraj(A,V,P,Tj,Ts) returns the position, velocity and acceleration profiles for a snap controlled law from the specified constraints on maximum velocity V, maximum acceleration A, desired traveling distance P, Jerk time Tj and Snap time Ts.
Y is a 3 row matrix containing the position, velocity and acceleration profile associated to the time vector T.
If Tj and Ts are not given, Tj=Ts=0 is assumed. The resulting movement is acceleration limited. If Ts is not given, Ts=0 and P contains the points of the corresponding jerk limited law
Cite As
Bearee Richard (2026). GenTraj.m (https://www.mathworks.com/matlabcentral/fileexchange/15310-gentraj-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Add the screenshot |
