Please answer the question below: This problem uses a Simulink model called \"ri
ID: 2969669 • Letter: P
Question
Please answer the question below:
This problem uses a Simulink model called "riccati_model.mdl" that you can find in the HW1 handout folder. This models the differential equation: = e-tx2 -rx The model is set to run for 50 time units and sends the simulated output variable, x, to the Matlab workspace. (Look in the "To Workspace" block to see the format.) Add another block to the model to send the derivative of x to the Matlab workspace. Show the modified model in your homework by clicking on "Edit" in the Simulink model window and selecting "Copy Model to Clipboard." You can then paste the model into a Word document. Run this model three times setting the parameter r to 0.1, 0.5, and 1.0. (You can set the value of r in the Simulink model, but a better way is to leave r as a parameter in the Gain block and then change the value of r in the Matlab workspace since Simulink knows about variables in the Matlab workspace. An even better way to work on this problem is to write a Matlab script that you can edit and run so that you don't have to keep retyping things at the command line.) Look at the parameter settings in each block to understand what is going on. (For example, notice that the initial value is set to 1 in the integrator block.) Using the values sent to the Matlab workspace, make plots like those in Problem 4. Notice that to use the time variable, tout, which is automatically sent to the Matlab workspace, you need to go into the configuration parameters and uncheck the box next to "Limit data points to last:" To find this, click on Simulations-> Configuration Parameters at the top of the model window and then click on "Data Import/Export" on the left-hand side. While you have the Configuration Parameter window open, look at the "Solver" settings. Notice that the model is using a variable-step size with the maximum step size set to auto. From your plots, does this maximum step size seem O.K.? Adjust the maximum step size until you are satisfied with the resolution. Set the Solver options to "Fixed-step" and select a step size of 0.01. Now, you can quantitatively compare the results of Problems 4 and 5 by subtracting the values sent to the Matlab workspace by the Riccati model with the values from your function. Make plots of the differences between the results from Simulink and your function. [From the name, you can guess that Problems 4 and 5 involve a Riccati equation. Remember the Riccati equation from SYSEN 510? If you don't, see page 33 of your textbook for that course.]Explanation / Answer
What kind of help do you need? Can you completely explain me that in short?