Exercise 4. (24 pts.) (Orbit Diagram) Use the Matlab file "logisticorbit.m" to plot the orbit diagram for the Logistic map. Change the previous file as needed to plot the orbit diagram for each of the following maps. Make sure to use a large enough range of the parameter value r to obtain the main features of interest. Additionally, run the code a few times to make sure that the chosen initial values do not change your plot (Does your plot change if you run the code more than once?).
- Xn+1 = xn * e^(-r * zn) (Only one period Doubling)
- xn+1 = r * cos(xn) (Period Doubling and then chaos)
- xn+1 = r * tan(xn) (Very messy)
- Xn+1 = r * xn - x^3 (Attractors are sometimes symmetric)