MATLAB: All necessary functions have been defined except for tout and omega,

collocationMATLABode15s

I have fads5.m created and in the same directory as MAIN.m. Kindly help to de-bug and resolve these two errors:
Error in ode15s (line 150) odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options, varargin);
Error in MAIN (line 208) [tout,omega] = ode15s('fads5', [t_initial t_final], omega0, options);
Please refer to below portion of code starting from Line 198, ending on Line 208. This code was designed for MatLab 5 but I am trying to run it on R2017b.
% CALL ODE SOLVER (Line 201)
%Reltol is relative tolerance, Abstol is absolute tolerance
omega0 = (cmui/cmu0)*ones((n+1)*m,1);
omega0 = [omega0; (cmui/cmu0)*ones(n+1,1)];
omega0 = [omega0; (ci/c0)*ones(n,1)];
omega0 = [omega0; thetai*ones(1,1)];
options = odeset('Reltol',1e-2,'Abstol',1e-5,'bdf','off');
[tout,omega] = ode15s('fads5', [t_initial t_final], omega0, options); %Line 208

Best Answer

The ode15s help clearly states that its first input must be a function handle:
ode15s(@fads5, ...)
Related Question