Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need some original code that uses an if statement, some else if statements, an

ID: 3636818 • Letter: I

Question

I need some original code that uses an if statement, some else if statements, and a for loop that creates a fern in MATLAB. It has to be fresh original code using:

apply z = [0 0;0 0.16]*z with p = 0.01
apply z = [0.85 0.04; -0.04 0.85]*z + [0; 1.6] with p = 0.85
apply z = [0.2 -0.26; 0.23 0.22]*z + [0; 1.6] with p = 0.07
apply z = [-0.15 0.28; 0.26 0.24]*z + [0; 0.44] with p = 0.07

Whoever can create this code for me God Bless You! I have no programming experience and this is my first project in an engineering class.

Please.

Please don't link me to any webpages. It has to be original code. The simpler the better with the if and elsif statements along with a for loop.

Explanation / Answer

B and C are.. they must add up to 1 or 100% probability and not be negative.