Introduction - If you have any usage issues, please Google them yourself
The optimal control algorithm Matlab complete example of the case, the free time problem into the state of the equation, and the use of bvp4c function to solve the minimum time optimization problems, terminal constraints, very valuable!