I want to connect pone in a line follow the for loop, the same for ptwo. And suppose that I have 2 first points. This is my code:
for p=1:10 pone=randi(10,1); ptwo=randi(10,1); plot(p,pone,'r.',p,ptwo,'c*','MarkerSize',10)hold onaxis([0 5 0 20])endhold off
Best Answer