How do I create a copy of ode15s that runs.
1 view (last 30 days)
Show older comments
I need to modify ode15s and so I am trying to produce a copy. I opened the code and then saved it with a new name, renamed the function ode15sJJB and changed line 110 to be consistent: solver_name = 'ode15sJJB';. I placed the copied version of the code, now ode15sJJB in the file with my main code that calls it and made no other changes. When I run the copied version, I get the following error:
Undefined function 'odearguments' for input arguments of type 'function_handle'.
Error in ode15sJJB (line 150) odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options, varargin);
Error in ViscoelasticFlowDEM2 (line 124) [t,X] = ode15sJJB(@ViscoelasticFlowDEM2Fun,[0:.03:tf], Xo, OPTIONS); % Solves the differntial equation for the flow simulation
Please advise me on how to get a copied version of ode15s to run.
Thank you,
Joe Biernacki Professor Tennessee Technological University 931-372-3667.
3 Comments
John D'Errico
on 8 Oct 2018
Modifying supplied code is a really bad idea. Why do you think you need to do that?
Answers (1)
Steven Lord
on 8 Oct 2018
The ODE solvers use some private helpers, like odearguments, that are only accessible to files in the directory in which ode15s and the other solvers live.
While it would be possible to make copies of those helpers for your copy of ode15s to use, I don't recommend it. Instead I second John's question. Why do you want to make a modified version of ode15s?
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!