Question: So i am using matlab for loop to solve this Euler's method and apparently there is an error in my code at the seventh line
nents Live Editor - untitled.mlx untitled.mlx * X + 1 = UN 2 3 4 5 6 7 8 9. 10 function dy dx = f(x,y) dydx = 6*x^2-3*x^2*y^2; x()=0; y(@)=3; D=0.15; for i=1:11 f(i)=6*x(i)^2-3*x(i)^2*y(i)^2; x(i)=X(i-1)+D; y(i+1)=y(i)+D*f(i); end KON 00 0 I Command Window New to MATLAB? See resources for Getting Started. fx >>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
