Answered step by step
Verified Expert Solution
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...
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!
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 endStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started