MATLAB: Second order differential equation with variable coefficients differential equations I have to solve this differential equation: m*d^2x/dt^2 +k*x= F(x) where F(x) is known for points Best Answer Write your equation as a first-order systemy1'=y2y2'=(-k*y1+F(y1))/muse "interp1" to interpolate F(y1) from your known values and call "ode45" to solve.Best wishesTorsten. Related SolutionsMATLAB: What modifications do I need to make in the following codes for solving the boundary value problem similar to the Blasius equation using Shooting method with R-K 4 numerical analysis Use MATLAB's "bvp4c" instead of a code that you don't understand.Best wishesTorsten. MATLAB: Numerical value for sum of bessel functions k = 0:10;x = 3;A0 = sum((-1).^k.*x.^(2*k).*besselj(2*k,x))If x is a vector, use A0 = arrayfun(@(x)sum((-1).^k.*x.^(2*k).*besselj(2*k,x)),x) Related QuestionRunge kutta method for differantial equations systems4th order Runge-Kutta code that can solve for several intial conditions
Best Answer