Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please include m-files so I can verify Consider the following linear system G(s)

ID: 2970412 • Letter: P

Question

Please include m-files so I can verify

Consider the following linear system G(s) = -8s + 6/2s3 + 9s2 + 13s + 6 For this problem, use a unit step input. Create a model for this system using only integrators and run it for 10 seconds. Replace the integrators with discrete integrators and investigate the effect of forward, backward, and trapezoidal integrators with sampling times of 0.01, 0.1, and0.2 seconds. Note that in the configuration parameters you will need to specify the step size and change the integrator to discrete states only. Also, set all of the sampling times in the various blocks equal to the discrete sampling time. For each case, compare the true solution to the discrete solution in two ways: Plot the true solution (in blue) and discrete solution (in red) on a single plot. Plot the difference between the true solution and the discrete solution. If you want to be really fancy, use the subplot command to show both plots in a single figure. Compute an estimate of the integral square error for each case and create a table of these differences. What conclusions can you draw regarding the accuracy of the different methods and step sizes?

Explanation / Answer

This is with discrete integrators and samplimg time 0.01


https://drive.google.com/file/d/0B3c3IX_OQxwgdnM0RXZyRUhZNHM/edit?usp=sharing


You can change the sampling time as needed