Question: Solve each of the following 4 initial value problems (IVP) via Simulink blocks. 1. y' = dy/dx = 3x^2 for 2 lessthanorequalto x lessthanorequalto 4
Solve each of the following 4 initial value problems (IVP) via Simulink blocks. 1. y' = dy/dx = 3x^2 for 2 lessthanorequalto x lessthanorequalto 4 with y = 0.5 at x = 2 4. y' = dy/dx =0.3-131 y for 0 lessthanorequalto x lessthanorequalto y = 4 at x = 0 y' = 2x cos^2(y) for 0 lessthanorequalto x lessthanorequalto 2 with y = pi/4 at x = 0 y" = d^2y/dx^2 = y'(1 - y)^2 - y for 0 lessthanorequalto x lessthanorequalto 20 with y'(0) = 0, y(0) = 0.25 Create 4 Simulink models to solve the 4 initial value problems. Each Simulink model should contain a Simulink blocks solution. Save the 4 Simulink blocks solutions' data into 4 different .mat files. Save x, dy/dx, and y for equation 1, 2, and 3. Save x, d^2y/dx^2, dy/dx, and y for equation Write a MATLAB driver program that will open all 4 Simulink models (for the 4 initial value problems above) and automatically run each Simulink model. Load the Simulink results from the simulation models to the MATLAB driver program. Load x, dy/dx, and y for equation 1, 2, and 3. Load x, d^2y/dx^2, dy/dx, and y for equation 4. Use a total of 4 figure windows, 1 figure for each equation, to plot the solutions. Plot the solutions created by Simulink. Make use of the plot titles, legends, and label axes properly to distinguish the results. Plot x vs. dy/dx and x vs. y for the Simulink solutions for Equations 1, 2, and 3. Plot x vs. d^2y/dx^2, x vs. dy/dx, and x vs. y for the Simulink solution for Equation 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
