Hi Torsten,
Thank you for your answer.
Somme addings regarding what I wrote : f1 and f2 have already the same length as r when I pass them into the function myproblem. I do not need to make an interpolation.
Matlab writes : Error in bvp5c : Not enough input argument.
David