I have two differential equations that I need to solve using matlab and get plots for them. the two equations are:
m*(d^2x/dt^2) + c*(dx/dt)^2 + (K1)*x + (K2)*x +(K3)*x^3= B*l*i
m, c,K1, K2, K3,B, l, L, and R are all constants E(t)=20 + 5*sin(2t). x and i are both variables. How would I put this into matlab and solve it using ode solvers. Sorry for what is probably such a simple question, I am new to solving ode's with matlab. Thanks for your help.