Search for question
Question

Problem 2 (50 points) What do we do when we have an input into the system explicitly given? In addition, our system does not need to be linear nor invariant to

solve using ode45 (). You just need to provide y(t) in terms of t and y(t) as a Matlab function. dt Given: dy(t) (2+ sin y(t)) -+ 5t²y(t) = x(t), dt y(0) = 0, and x(t) = (1 - e-³t)u(t-1) (Note that the step function in the input is shifted to the right). (You can mimic step function by just having if statements in your ODE function). Plot y(t) for the time range 0 ≤ t ≤ 10. Provide all your codes commented.

Fig: 1