Question: MATLAB HELP!!!! MATLAB CODE ONLY 1.3 Halting the iteration Iteration stops whenever either of two criteria are met: Table 1: The first four iterations for

MATLAB HELP!!!! MATLAB CODE ONLY

MATLAB HELP!!!! MATLAB CODE ONLY 1.3 Halting the iteration Iteration stops whenever

1.3 Halting the iteration Iteration stops whenever either of two criteria are met: Table 1: The first four iterations for c= 1. The absolute value of z, denoted as z, exceeds 2.0, or 0.1+0.2i starting at z=1+i. 2. The number of iterations exceeds 100. The absolute value z of a complex number z can be calculated in MATLAB as abs ( z). Table 1 summarizes the first four iterations for c=0.1+0.2i starting at z=1+i, along with z after each iteration. After the first iteration z>2.0 so the iteration should halt after one iteration. The number of iterations needed to achieve either of the stopping criteria above is denoted as d and is called the escape parameter. The escape parameter d will always be an integer of at least zero because it's counting iterations, and due to Criterion 2d will never exceed 100. Different values of z are expected to produce different d even when c is constant. 1.4 Problem statement 1.4.1 The iterating function Write a function functiond=iterate(z,c) which performs the iteration described above. The inputs and outputs are as follows: - z is a complex number, - c is a complex number, - d is the escape parameter d. Remember that d should not exceed 100; that is, the number of iterations performed should not exceed 100 as described in Section 1.3. Since the required number of iterations is not known the iterate function will require a while loop instead of a for loop. The stopping criteria for the while loop are provided in Section 1.3

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!