Question: MATH LAB [0] (1.6) c=1068] =(-0.12 INPUT N, positive integer OUTPUT A plot of a fern produced by fractal recursion Set the following parameters: A

MATH LAB
MATH LAB [0] (1.6) c=1068] =(-0.12 INPUT N, positive integer OUTPUT A
plot of a fern produced by fractal recursion Set the following parameters:

[0] (1.6) c=1068] =(-0.12 INPUT N, positive integer OUTPUT A plot of a fern produced by fractal recursion Set the following parameters: A .845 .035] 1.2 -.31 -.15 24 1-035.82 L.255 245) 25 2 102 a = b=100] (0.29 Xa = [0.5 0.5]" for k= 1,....N-1 Randomly choose and perform one of the following affine transformations. according to the assigned probabilities: Xx+1 = Ax + a with probability 0.85 X4+1 Bx + b with probability 0.07 Xx+1 = Cxx + c with probability 0.07 X+1 = Dxx +d with probability 0.01 end for loop m 35.1 - 7 logio(N) (Note: m decreases as N increases) Plot the first row of X versus the second row of X as dots with pixel size m X is the matrix whose kith column is X-1) Note that the parameter m adjusts the pixel size relative to the number of pixels. 1. Implement the pseudocode as a Matlab function, titled fractal fern that accepts a positive integer N as input and outputs a plot of coordinate dots. The first line of your code should therefore be: function fractal.fern(N) 2. Turn in five plots created by your code with inputs of N = 10. 10 .....105 Note: When creating your plots, consider the following aesthetic elements: Do I need a numbered axis when creating this plot? What would look best? . Choose a favorite color (or colors) for the dots in your plot, perhaps a UTRGV burnt orange, a Texans steel blue, or another favorite color. This assignment is based on the fractals discussed in the book Fractals Everywhere by M.F. Barnsley All work should be typed and presented clearly and efficiently. Pseudocode, matlab code. and figures should each be on a separate page and submitted as a single document according to the instructions given in class

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!