I have a for loop like this:
for i = 1:100
p1 = polar(thetaOne(i),rOne(i),'r+')
p2 = polar(thetaTwo(i),rTwo(i),'g+')
I have to retain the p1 and remove p2 from every iteration.
Suppose at i == 50, all the values thetaOne(1:50),rOne(1:50) must be there in the figure, and only thetaTwo(50),rTwo(50) must be present in the figure.