Find the variation of x(t)

5 次查看(过去 30 天)
Given differential equation
x''(t) + 7x'(t) + 5x(t) = 8u(t) where u is the unit step signal.
Initial Conditions: x(0) = 1, x'(0) = 2
Can someone please help me out to plot x(t) using Matlab with the given initial conditions?

采纳的回答

Chunru
Chunru 2022-5-17
编辑:Chunru 2022-5-17
syms x(t)
Dx = diff(x, t);
eqn = diff(Dx, t) + 7* Dx + 5*x == 8
eqn(t) = 
cond = [x(0)==1, Dx(0)==2];
y = dsolve(eqn, cond)
y = 
fplot(y, [0 5])
  3 个评论
Chunru
Chunru 2022-5-17
since u(t)=1 for t>0 and the initial condition is at t=0, it take cares of u(t).
[0, 5] indicates the plotting interval for t is from 0 to 5 as shown in the plot.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by