I am having some trouble setting up a differential equation to be solved using MATLAB:
I am solving for v(t) and have values for m, J, R, θ, and b, but I would like to solve it symbolically first, and then go back and solve it numerically.
To solve numerically, I would use an ode sover, correct?
Any help or pointers is appreciated!
My attempt (which I fear is very wrong):
syms v(t) x_dot x_dbl_dot m J R theta b g xa=x_dbl_dot;alpha=x_dbl_dot/R;eqn=diff(x,t,2)==(J+2*m*R^2);eqn1=diff(x,t)==(b*R^2)-m*g*R^2*sin(theta);cond=[v(t)==0];xSol(t)=dsolve(eqn,eqn1,cond)
Best Answer