I can't plot 2nd order differential equation

I can't plot 2nd order differential equation.
syms x(t); Dx = diff(x); Dx2 = diff(x,2); x(t) = dsolve(Dx2+(5*Dx)+(6*x)==100,x(0)==0,Dx(0)==0)

 Accepted Answer

I can!
Try this:
syms x(t);
Dx = diff(x);
Dx2 = diff(x,2);
x(t) = dsolve(Dx2+(5*Dx)+(6*x)==100,x(0)==0,Dx(0)==0)
figure(1)
fplot(x, [0 10])
axis([xlim 0 17])
grid

More Answers (0)

Community Treasure Hunt

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

Start Hunting!