I have the solution to 5 I just need help with creating the

I have the solution to #5, I just need help with creating the matlab code for it.

Creating the matlab code for it. x + 4x = f(t) with no initial conditions (x(0) = 0 and x.(0) = 0) and where f(t) is a step function of amplitude 4, that is, f(t) = 4u_s (t) = {0 for t

Solution

Code:

xt = dsolve(\'D2x+0*Dx+4*x=4\',\'x(0)=0\',\'Dx(0)=0\');% I took 4 u(t) as 4 because we are calculating x for t>=0

% x\'\' x\' x f(t) initial conditions

Output:

1 - cos(2*t)

I have the solution to #5, I just need help with creating the matlab code for it. Creating the matlab code for it. x + 4x = f(t) with no initial conditions (x(0

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site