MATLAB: Ode45 failing but other solvers work fine

MATLABode45

Hi. One particular computer the script below is givng an error using ode45. On other computers ode45 works just fine. On the computer with the problem substituting ode23, ode133, ode152, etc. all work fine. No other changes are made (all have the same call syntex), ie, simply changing "45" to "23" gives the error shown below. This is completely bizarre to me. Any ideas?

Best Answer

  • Run this from your Command Window or a script:
    which ode45 -all
    You should only get:
    C:\Program Files\MATLAB\R2020b\toolbox\matlab\funfun\ode45.mC:\Program Files\MATLAB\R2020b\toolbox\matlab\funfun\ode45.m
    I suspect you will get more than that, pointing to the problem.