I want to solve the following problem numerically
I tried to input the function as a handle function to matlab, but it refutes to compute the integral for the second layer, while the trapz returns the very wrong answer when I refine the domain of integral. Is there anyway to do it with high accuracy in Matlab?
Best Answer