To write a MATLAB code using the "lsim" command and find the response for the given input and initial conditions, follow the steps below:
Here is the MATLAB code:
main.m375 chars20 lines
Make sure you have the Control Systems Toolbox installed in order to use the "lsim" command.
gistlibby LogSnag