Why wont this script plot a graph? the plot shows up empty on the interval 0 - .9, 0 - 1
Show older comments
clear
clf
x = rand;
y = rand;
plot(x,y)
hold on
for it = 1:10000
choic = round(rand*2);
if choic==0
x = x/2;
y = y/2;
elseif choic==1
x = (x+1)/2;
y = y/2;
end
plot(x,y)
hold on
end
Accepted Answer
More Answers (0)
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!