Implementing explicit Euler method (for ODEs) in MATLAB
问题 I've searched everywhere, and I can't find anything. First of all, let me just say I have never used Mat Lab so I have no idea what I am doing what so ever. I have tried a few things, but none have worked. Apparently y(0)=2 tries to create a list of 0 units with the value of 2? Anyway, can someone help me? I need to write a flexible Euler's Method equation in Mat Lab to solve a few equations like this. 1) y' = 5-3sqrt(y) ; y(0)=2 With h= .1 , .05 , .025, .01 && t =.5 ,1 , 1.5 , 2 , 2.5 ,3 I