MATLAB: ODE 45 Error unable to meet integration tolerance

cash karp methodnonsmooth solutionode45

Hello All, I am experiencing an error with ODE 45 unable to meet integration tolerance without reducing the time step below a minimum value. I read through the help files it is because of non smooth functions which are not handled in ODE45 Dormand–Prince (RKDP) method. There is another RK method Embedded Runga Kutta method by Cash-karper which deals with nonsmooth functions. Embedded Runga Kutta method by cash karper is also a variable step size Runga kutta method. Does Cash karper method overcomes the disadvantage of Runga kutta method i.e not able to handle non smooth function?. Does matlab have Cash Karper implementation of Runga Kutta ? . Any suggestions are highly appreciated.
Related Question