I get the following warning message:
Warning: The EraseMode property is no longer supported and will error in a future release.
The corresponding code lines are :
KeSTART = 0;KeSTEP = 0.025;KeSTOP = 2;AXDEF = [KeSTART KeSTOP 0 1];colordef white;f1 = figure;p = plot(AXDEF(1)-1,AXDEF(3)-1,'k.');drawnow;set(p,'Erasemode','none','MarkerSize',1);axis(AXDEF);grid off;hold on;
I found the following link: https://www.mathworks.com/help/matlab/graphics_transition/how-do-i-replace-the-erasemode-property.html.
It is stated that it can be replaced by animatedline, but I don't know how to replace it in the line of code.
Could you help with modifying the above code?