Trying to solve a differential equation

syms x(t)
Dx=diff(x);
x(t)=dsolve(3*diff(x,t,2)+2*diff(x,t)+108*x==Fmag,x(0)==0,Dx(0)==4)

 Accepted Answer

Add ‘Fmag’ to the syms declaration to get —
.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products

Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!