x(t) = Ax(t) + Bu(t) for the four cases, respectively, (a) A= B= -3-4 f(t) = 1 1 (b) A= 0 -4 B= f(t) = 1 -4 (c) A= 0 1 -
Posted: Wed Apr 27, 2022 7:23 pm
x(t) = Ax(t) + Bu(t) for the four cases, respectively, (a) A= B= -3-4 f(t) = 1 1 (b) A= 0 -4 B= f(t) = 1 -4 (c) A= 0 1 -8 -4 B= f(t) = 1 回 0 il (d) A= B= -360 f(t) = 1. For each of the four cases above (1.1) Write Matlab functions named, respectively, i. sysA.m ii. sysB.m iii. sysC.m iv. sysD.m that takes the scalar t and the 2 x 1 vector r as arguments, that evaluates the right hand side of (1), and returns a 2 x 1 vector i, i.e., i = sysA(t,x). (1.2) Use the Matlab function ode45( to compute a numerical solution to this differential equa- tion. (1.3) Use the Matlab function plot() to plot the xi(t) solutions. Label the curves. Use hold on to enable you to plot multiple curves the same plot. Hand in your plot showing the four solutions