-
Notifications
You must be signed in to change notification settings - Fork 216
Description
Hello,
I attempted to run the "MAIN_simulate.m" and "MAIN_minForceTraj.m" files in the quadRotor2d demo, but received the following error in both cases:
Index in position 1 exceeds array bounds (must not exceed 2).
Error in dynamics (line 14)
q = x(1:5,:);
Error in MAIN_simulate>@(t,z)(dynamics(z,ctrlFun(z),p))
Error in odearguments (line 90)
f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ode45 (line 115)
odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options, varargin);
Error in MAIN_simulate (line 29)
soln = ode45(dynFun,tSpan,z0);
I know the OptimTraj library should be compatible with any release of MATLAB, but I encountered this error using both the 2016a version and the 2018b version. Is there a change from earlier versions that might be causing this error?