Upload a “.m” file that will do the required work! We have…
Upload a “.m” file that will do the required work! We have a tranfer function . USe Lsim to find the output of this system when input is exp(-t)*cos(t) between 0 and 10 seconds. Assume cos(t) will generate the result thinking t is in radians. HERE IS THE CATCH! Lsim has to be used TWICE to plot the responses from a) this System Transfer Function and b) from its equivalent State Space Representation. Your m script should generate TWO responses from a) From the Transfer function and b) State Space Representation – in ONE FIGURE! Don’t forget to add Labels accordingly!