From: Gideon Simpson on
I'm trying to solve a BVP with a continuation parameter in it. The loop is essentially:

while eps < epsmax

sol = bvp4c(...)
eps = eps + delta

So here's my question. Sometimes I generate a warning about not reaching tolerance and needing to increase points. I'm interpreting this as getting near bifurcation points of the branches i'm continuing on. Near these points, I should terminate the loop early. But how do I capture these warnings? There doesn't appear to be an output flag with bvp4c that tells me whether or not it successfully terminated.
From: Máday Péter on

Hello

help lastwarn

This function should return the message and the identifier of the last
warning.

Peter