Question: 9) Consider the nonlinear recursion formula Ik+1 = 2.0(1 - Tk) cos'k where ro = 0.1. Write a script which calculates in for a given

 9) Consider the nonlinear recursion formula Ik+1 = 2.0(1 - Tk)cos'k where ro = 0.1. Write a script which calculates in for

9) Consider the nonlinear recursion formula Ik+1 = 2.0(1 - Tk) cos'k where ro = 0.1. Write a script which calculates in for a given 7. Execute this code for n = 10", 10, ..., 10' and tabulate the results using "format long g". The name of this script should be myrec.m, the input n, and the output x_n, which is the last value calculated. Note: Do not try to print out all the values only the requested ones. Follow the directions in the Notes at the beginning of this problem set. Note: All the scripts in these problems must be written as shown in this section. The input must be calculated outside the code and the output must be printed outside it unless otherwise noted. Either generate the input and print the output in a different script, or do it in the Command Window. Note: You can only use for or while loops and if tests in your codes. None of the MATLAB functions max, min, sum, find, or sort can be used, and logical variables are also not allowed. Note: Many of these problems require you to "Include tests to verify ...". This is an incredibly important part of a problem: first, get it to run, and, second, get it to run correctly

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!