Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In MATLAB. I'm having issues getting this script to plot... Everytime I run the script this is the graph that pops up... Nothing is there

In MATLAB. I'm having issues getting this script to plot...

image text in transcribed

Everytime I run the script this is the graph that pops up... Nothing is there everytime! Please help me understand why this keeps happening. Thank you!

image text in transcribed

Execute this script and be amazed by the results! You can try more points to get a clearer picture, butit may take a while to run. clear clf x = rand ; y = rand; plot(x,y hold on for it 1:10000 choic-round(rand*2); if choic- x=x/2 y=y12; x = (x+1)/2; y=y12; x = (x+0.5)/2; y = (y+1 ) / 2 ; elseif choic-1 else end plot(x.y) hold on end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions