Question: I need help writing the following MATLAB script and computation for my cobweb diagram. Here is the assignment, and my code is attached at the

I need help writing the following MATLAB script and computation for my cobweb diagram. Here is the assignment, and my code is attached at the bottom. My function is called bobjj_hw6.

I need help writing the following MATLAB script and computation for my

cobweb diagram. Here is the assignment, and my code is attached at

Write and submit a script called your eid_Logistic_redux.m in which you produce cobweb diagrams caputuring a single fixed point, orbits of multiple sizes, chaos. Also try to include a choice which lead to a divergent iteration. Write your code in such a way as to call your function your eid_hu6.m as an external subfunction function call (not pasted at the bottom!) By direct hand computation, find the fixed point for a 2, and use the FPI to find the largest interval containing initial conditions which must converge. Use the FPI theorem to explain the behavior for both fixed points and non-fixed points. Does it always work? Why or why not? function bobjj_hw6l(alpha, x0) sThe user must input a particular value for alpha, and yielding an initial scondition of two inputs. %Let rendontj be a map from R to the linspace. rule apply f(x) -alpha*x(1-x). %Map representation. The f-e(x) alpha . *x . * ( 1-x); %Initialize linspace xx-linspace 0,1,100); we to the map is %Initialize plot commands to visualize cobweb. hold on plot(xx,yy, 'b', 'Linewidth',2) plot(xx,xx, 'b', 'Linewidth',2) plot ([xe x01, [0 f(x0)], 'r') %By using this loop, the points will change after each iteration. for i=1:500 x1-x0; y1-f (x1); x2-f (x1); y2-f (x1); x3-f (x1) y3-f (f (x1)); plot ([x1 x21, [yl y2], 'r) plot ([x2 x3], [y2 y3], 'r) x0x3; end For asthetics, this is the title and the labeling for the plane. title ( sprintf("cobweb plot for alpha %2.2f and x8-%2.2f.,alpha,x8)) xlabel(x ylabel('y' box on end SEXAMPLES: #1) TEST CASE : alpha- 2; x0-0.5 #11) favorite intial conditions: alpha siii) alpha2.50; x0.85 3.5; x0-0.2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!