6. Our instructors have written a MATLAB script called nonlinear_phase_portrait.m which plots the phase portrait of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
6. Our instructors have written a MATLAB script called nonlinear_phase_portrait.m which plots the phase portrait of an autonomous 2-dimensional first order system of differential equa- tions: The figure includes: vector field defined by the functions f1 and f2, figure limits defined by x1_range and x2_range, and step size between arrows given by step -nullcline f1 (11, 2) = 0 as a red dashed line and z2-nullcline f2(#1, #2) = 0 as a green dashed line critical points found by fsolve given user input solutions as solid blue lines given initial values (0) and 22 (0) specified by the user and plotted for all t (-00,00) The script uses the function faolve in the Optimization Toolbox and so make sure to have that installed if you are running MATLAB on your own machine. For example, consider the system: # = - 12 * = x-1 Edit the top of the script with following lines of code: % nonlinear_phase_portrait.m f1= @(x1,x2) x1 - x2; f2= @(x1, x2) x1.2 1; x1_range= [-2,2]; x2_range = [-2,2]; step = 0.2; Run the script, enter user input to plot all the critical points and enter user input to plot solutions corresponding to initial values (#(0), 12(0)): (-1,1) (1,0) (-1,0) (-2,0) (1,-1) (1,-1.75) (0, -2) If executed correctly, the script should generate the following figure: 2 1.5 1 0.5 # = f(#1, #) #2 = f2(#1, #2) 0 -0.5 -1 -1.5 Consider the system of equations = x+-1 2 = 1 - x2 (a) Use the function nonlinear_phase_portrait to plot the phase portrait. The system has 2 equilibrium points, one is a local spiral sink and the other a local saddle point. Find the coordinates (1, 12) of the local spiral sink equilibrium point (each coordinate to 5 decimal places) and save the coordinates as a row vector called Q6Avec. For example, if the point is located at (1,0) then Q6Avec = [10]. (b) Find an interval [a, 6] (each value to 2 decimal places) such that if (t) = (x(t), (t)) is a solution such that its initial condition satisfies z(0) = -1 and a z(0) then r(t) approaches the unique spiral sink equilibrium point as to. Save the interval [a, 8] as a vector called Q6Bvec. 6. Our instructors have written a MATLAB script called nonlinear_phase_portrait.m which plots the phase portrait of an autonomous 2-dimensional first order system of differential equa- tions: The figure includes: vector field defined by the functions f1 and f2, figure limits defined by x1_range and x2_range, and step size between arrows given by step -nullcline f1 (11, 2) = 0 as a red dashed line and z2-nullcline f2(#1, #2) = 0 as a green dashed line critical points found by fsolve given user input solutions as solid blue lines given initial values (0) and 22 (0) specified by the user and plotted for all t (-00,00) The script uses the function faolve in the Optimization Toolbox and so make sure to have that installed if you are running MATLAB on your own machine. For example, consider the system: # = - 12 * = x-1 Edit the top of the script with following lines of code: % nonlinear_phase_portrait.m f1= @(x1,x2) x1 - x2; f2= @(x1, x2) x1.2 1; x1_range= [-2,2]; x2_range = [-2,2]; step = 0.2; Run the script, enter user input to plot all the critical points and enter user input to plot solutions corresponding to initial values (#(0), 12(0)): (-1,1) (1,0) (-1,0) (-2,0) (1,-1) (1,-1.75) (0, -2) If executed correctly, the script should generate the following figure: 2 1.5 1 0.5 # = f(#1, #) #2 = f2(#1, #2) 0 -0.5 -1 -1.5 Consider the system of equations = x+-1 2 = 1 - x2 (a) Use the function nonlinear_phase_portrait to plot the phase portrait. The system has 2 equilibrium points, one is a local spiral sink and the other a local saddle point. Find the coordinates (1, 12) of the local spiral sink equilibrium point (each coordinate to 5 decimal places) and save the coordinates as a row vector called Q6Avec. For example, if the point is located at (1,0) then Q6Avec = [10]. (b) Find an interval [a, 6] (each value to 2 decimal places) such that if (t) = (x(t), (t)) is a solution such that its initial condition satisfies z(0) = -1 and a z(0) then r(t) approaches the unique spiral sink equilibrium point as to. Save the interval [a, 8] as a vector called Q6Bvec.
Expert Answer:
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Posted Date:
Students also viewed these databases questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
A decline in the aggregate demand has led to a decline in output in the economy equal to $10 billion. Government wants to counter this recession by reducing income taxes. Assuming that the marginal...
-
Describe the main purposes of using Facebook, business podcasts, blogs, and wikis?
-
What is (a) A direct cost and (b) An indirect cost?
-
In 2015, the city of San Francisco enacted an ordinance that required health warnings on advertisements for certain sugar-sweetened beverages (SSBs) that read: WARNING: Drinking beverages with added...
-
Quillen Company is performing a post-audit of a project completed one year ago. The initial estimates were that the project would cost $250,000, would have a useful life of 9 years, zero salvage...
-
Joe is 25 and has a wage of $30,000. He is single with no dependents, and files as single. He rents and makes no contributions to charity. He contributed $800 to a Roth IRA in 2022. What is his Total...
-
Loan payments of $1725 due today, $510 due in 75 days, and $655 due in 323 days are to be combined into a single payment to be made 115 days from now. What is that single payment if money is worth...
-
Abba Co. owns a 40% interest in Jay Ltd, a joint venture. Information for the two entities for the year ended July 31, 20X4, is as follows: Sales Net income Abba $5,000,000 1,500,000 Jay $3,900,000...
-
Why are communications, actions, and rewards so important in an organisation?
-
From your experience, identify five organisational norms. Assess how each affects innovation.
-
Explain the concept of design latitude and how it can affect manufacturing efficiencies.
-
What is the purpose of retainage?
-
Explain how process-led manufacturing customisations can enhance market strategies.
-
What are the pros and cons of waiting for a year before deciding whether to invest? Ecsy-Cola18 Libby Flannery, the regional manager of Ecsy-Cola, the international soft drinks empire, was reviewing...
-
A consumer magazine is evaluating five brands of trash compactors for their effectiveness in reducing the volume of typical household products that are discarded. In the experiment, each block...
-
Use Gauss elimination with pivoting to solve -1 3 3 -2 -3 2 10 5 -5 -3 2 3 1 -3 2 7 y 1 1 1 1 1 ][ Z 0 4 U W X || -5 11 1 14 4
-
Solve the following ordinary differential equation dy dx =y-2, y(0) = 2
-
Determine the output of the following calculation: 1 stop = 0; j = 2; while j < 9 2 3 4 j = j^2; 5 6 end j
-
Define terrorism.
-
Congress has prohibited the provision of material support or resources to certain foreign organizations that engage in terrorist activity. 18 U.S.C. 2339B(a)(1) . . . The plaintiffs in this...
-
Following a six-day trial in March 2008, a jury convicted Defendant Hassan Abu-Jihaad on two charges: (1) disclosing national defense information to those not entitled to receive it in violation of...
Study smarter with the SolutionInn App