Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE MATLAB: Answer each part in a separate cell include discussion, plots and code where appropriate. Given the initial value problem: + + = ()

image text in transcribedUSE MATLAB:

Answer each part in a separate cell include discussion, plots and code where appropriate.

Given the initial value problem: + + = () = () =

a) Determine the auxiliary equation and find the roots. Based on the roots what type of solution do you expect (stable or unstable, shape etc.)?

b) Write the equations in state space (matrix form) () = () + (). Let 1 = and 2 = .

c) Determine the critical/equilibrium point. Show how you got your answer.

d) Numerically solve the IVP using ode45. Plot the two states for the time interval [0, 4] in the left two panes and the phase plot x2 vs x1 in the right 2 panes. Annotate all plots. Use legend to annotate the initial conations and equilibrium point on the phase plot. Call this solution the numeric solution.

e) Use dsolve to find the solution of the IVP and also find its derivative. Use the matlabFunction() to create a function for y and y. You need to submit a time vector to function created by matlabFunction(). Call this solution the analytic solution.

f) Create one graph with three sub plots.

  1. For subplot 1 overlay the component plot for analytic solution of y from part e on the same plot as the numeric solution of y of part d. Are they the same?

  2. For subplot 2 overlay the component plot for analytic solution of y from part e on the same plot as the numeric solution of y of part d. Are they the same?

  3. For subplot 3 graph the phase plot.

ENGR232 Week 5 Lab Winter 2019 Answer each part in a separate cell - include discussion, plots and code where appropriate Given the initial value problem: y" +6y' +9y 0 y(0) -2 y'(0)-3 Determine the auxiliary equation and find the roots. Based on the roots what type of solution do you expect (stable or unstable, shape etc.)? a) b) Write the equations in state space (matrix form) x'(t) - Ax(t) + Bf (t). Let x1 -y and x2 - c) Determine the critical/equilibrium point. Show how you got your answer. d) Numerically solve the IVP using ode45. Plot the two states for the time interval [0, 4] in the left two panes and the phase plot x2 vs xi in the right 2 panes. Annotate all plots. Use legend to annotate the initial conations and equilibrium point on the phase plot. Call this solution the numeric solution e) Use dsolve to find the solution of the IVP and also find its derivative. Use the matlabFunction() to create a function for y and y'. You need to submit a time vector to function created by matlabFunction). Call this solution the analytic solution f) Create one graph with three sub plots For subplot 1 overlay the component plot for analytic solution of y from part e on the same plot as the numeric solution of y of part d. Are they the same? For subplot 2 overlay the component plot for analytic solution of y' from part e on the same plot as the numeric solution of y' of part d. Are they the same? For subplot 3 graph the phase plot. a. b. c. Note: Submit your Live Script, a published pdf file of your script, and all function files. The naming convention of the Live Script and published pdf should be lastname_initials_lab1.m The published document must include all functions used. All figures must be annotated (labels, legends, markers, title, etc. Answers to questions asked should be printed as an output ENGR232 Week 5 Lab Winter 2019 Answer each part in a separate cell - include discussion, plots and code where appropriate Given the initial value problem: y" +6y' +9y 0 y(0) -2 y'(0)-3 Determine the auxiliary equation and find the roots. Based on the roots what type of solution do you expect (stable or unstable, shape etc.)? a) b) Write the equations in state space (matrix form) x'(t) - Ax(t) + Bf (t). Let x1 -y and x2 - c) Determine the critical/equilibrium point. Show how you got your answer. d) Numerically solve the IVP using ode45. Plot the two states for the time interval [0, 4] in the left two panes and the phase plot x2 vs xi in the right 2 panes. Annotate all plots. Use legend to annotate the initial conations and equilibrium point on the phase plot. Call this solution the numeric solution e) Use dsolve to find the solution of the IVP and also find its derivative. Use the matlabFunction() to create a function for y and y'. You need to submit a time vector to function created by matlabFunction). Call this solution the analytic solution f) Create one graph with three sub plots For subplot 1 overlay the component plot for analytic solution of y from part e on the same plot as the numeric solution of y of part d. Are they the same? For subplot 2 overlay the component plot for analytic solution of y' from part e on the same plot as the numeric solution of y' of part d. Are they the same? For subplot 3 graph the phase plot. a. b. c. Note: Submit your Live Script, a published pdf file of your script, and all function files. The naming convention of the Live Script and published pdf should be lastname_initials_lab1.m The published document must include all functions used. All figures must be annotated (labels, legends, markers, title, etc. Answers to questions asked should be printed as an output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

5. Describe how contexts affect listening

Answered: 1 week ago